|
Hi mav,
thanx for ur efforts but i think i made actually not good solution but i think it work at this time
this is the code(please tell me if any notes)
Graphics grfx = this.CreateGraphics();
Pen pen = new Pen(mainScreen.DefaultBackColor);
if (counter == 0)
{
lastPntOfLine = e.Location;
counter++;
}
else
grfx.DrawLine(pen, mLineBeginPnt, lastPntOfLine);
mLineEndPnt = e.Location;
grfx.DrawLine(Pens.Black, mLineBeginPnt, mLineEndPnt);
lastPntOfLine = e.Location;
grfx.Dispose();
pen.Dispose();
Invalidate();
i felt very stubid to write that but this is my thinking until now
Generator
|
|
|
|
|
Hello,
I've made a new version of my app,I want the setup project to upgrade any previous versions or remove them for the new installation.
Dad
|
|
|
|
|
What are you using to build installers ?
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
thanks for reply
I use a .net setup project
Dad
|
|
|
|
|
How to move the cursor on some position(coordinates x and y).
C#
|
|
|
|
|
Cursor.Location = whatever ( I think, I know the property exists, not sure if it's settable )
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
I've gotten as far with this as using getDC to draw to the desktop and some window picker code I found on this site. What I've yet to discover are:
i) How to trigger a handler every time the flash window has finished updating so that I can capture the bitmap at that point.
ii) How to blit to the desktop only after the flash window (or all windows) have updated, but still while the monitor beam is at the top of the screen.
(The directx full screen support addition to the latest flash won't help in this case -- i.e. for existing swf's. The task is to resize existing non-interactive animations at a decent frame rate..)
Any help appreciated, thanks.
-- modified at 15:34 Saturday 17th March, 2007
|
|
|
|
|
The biggest problem your facing is that you can't determine when the Flash window finishes it's painting. There is no notification given that signals the painting completion. You also can't determine when the scan is at the top of the monitor. Hardware interaction isn't available to your app without you writing driver-level code.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Thanks for the reply, I'm about to use it to try and get out of the task
|
|
|
|
|
I need a help here.
How to create dial-up setting for web browser I have create in visual C#. How to call in form with button click the New Connection Wizard like in IE.
Another question:
How to craete proxy setting form like in IE. This is also enough, can tell me how to call the Local Area Network(LAN) setting form when click button.
Another question:
How to display history of page have I been visit in a form and a botton fof delete it.
I'm realy in trouble please help me. Tq very much.
|
|
|
|
|
hi ..
i want to get image from scanner in my vc#2005 app, how to do ?
thanks
|
|
|
|
|
TWAIN is the mechanism most scanners use, although some may use WIA, I guess. There is no built in TWAIN support, but there are commercial and ( I think ) free libraries around. CP has at least one free C++ TWAIN library, and perhaps some .NET ones.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
thanks for reply..
does any free library for c# 2005 ??
|
|
|
|
|
Hi,
I am have to use Sybase database in my appliction.
Is there any way to use it without installing ODBC Driver on each machine, I mean like is there any way to directly connect to Sybase by imporing a reference dll or something.
Thank you!
"Mess with the Best, Die like the rest"
|
|
|
|
|
hi,
I want to send audio or a .wav file through a socket. On the otherside will the bytes be converted to play.
What is the best way to send a .wav file? the file will be converted into chars ? or something?
How can I easely record voice from microphone and send it immediatly through the socket?
Thanks in advance
|
|
|
|
|
Take a look at the NetworkStream class.
trab007 wrote: will be converted into chars ? or something?
Depends on your definition of chars.trab007 wrote: How can I easely record voice from microphone and send it immediatly through the socket?
Find a way to read in bytes of data from the microphone and then you can write then to a NetworkStream .
|
|
|
|
|
|
hello
i was assigning a progress bar to a thread which i don't know how much time takes to complete... actually the thread calls a method of a library that i have downloaded from net... so i don't know how to use the step property of the progress bar... please provide a code snippet that shows assigning a progress bar to a thread ... thanx
haseeb
|
|
|
|
|
Your thread cannot interact with the UI. You should use a backgroundworker object, it can send messages back to the UI thread to update a progress bar.
If you don't know how long it will take to complete, you obviously cannot show a progress bar properly, you'd have to show one that just moves from empty to full over and over, as Windows also does at times.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
hi, i want to know if there is a way in vbscript to empty and remove a declared variable from the memory after defining it, for example:
Dim var1
var1 = "value"
i want not only to empty the value assigned to the var1 variable, i want to remove it from the memory to free it to avoid the space reserved to it in the moemory,
I found that i can use empty and nothing, do they enough to free the memory???
Thanks alot
Hamody
|
|
|
|
|
You should post this in a more appropriate forum. One dedicated to VBScript.
|
|
|
|
|
what do u mean? don't u understand my question?
Thanks alot
Hamody
|
|
|
|
|
Mohammad Daba`an wrote: what do u mean?
This is the C# forum. Not the VB Script forum.
Mohammad Daba`an wrote: don't u understand my question?
Yes, I understand your question.
|
|
|
|
|
where is the vbscript forume
Thanks alot
Hamody
|
|
|
|
|
Next time, ask in the Visual Basic Forum.
Yes and no. It depends on the type of the variable and it's context.
No, there is no way to release it. You don't have to worry about it. Just let the runtime take care of it.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|