Drawing to the Screen
-
Does anyone have any pointers on how to draw directly onto the screen in C# or VB.Net? I've found you can get a handle to the desktop using this VB.Net code: Graphics.FromHwnd(IntPtr.Zero) However, attempts to draw to this result in nothing, no errors, and no output. Any suggestions would be very welcome... William Bartholomew
-
Does anyone have any pointers on how to draw directly onto the screen in C# or VB.Net? I've found you can get a handle to the desktop using this VB.Net code: Graphics.FromHwnd(IntPtr.Zero) However, attempts to draw to this result in nothing, no errors, and no output. Any suggestions would be very welcome... William Bartholomew
William Bartholomew wrote: I've found you can get a handle to the desktop using this VB.Net code: Graphics.FromHwnd(IntPtr.Zero) That will get the foreground window AFAIK. Have a look on GotDotNet.com for Eric Gunnersons (what happened to him anyways?) Win32 library, it has all the functions needed for what you are trying to do. Cheers :) I rated this article 2 by mistake. It deserves more. I wanted to get to the second page... - vjedlicka 3:33 25 Nov '02
-
Does anyone have any pointers on how to draw directly onto the screen in C# or VB.Net? I've found you can get a handle to the desktop using this VB.Net code: Graphics.FromHwnd(IntPtr.Zero) However, attempts to draw to this result in nothing, no errors, and no output. Any suggestions would be very welcome... William Bartholomew