Hey,
I want to draw a line on the screen not on a form. How can this be done?
Printable View
Hey,
I want to draw a line on the screen not on a form. How can this be done?
Well, windows is a window-based OS, so in effect, you should really use a window (form) to draw graphics.
You can use a clipped-region, stay-on-top form..
Thats not a option.
How bout you describe why you want the line on the screen and I can tell you how it may be or may not be an option.
It is not. OK? Is it too much to ask just for you guys to give me a anwser?
You cannot draw to the desktop using .Net without using API's.
So if you know how to do it in VB6, use the same method. My only concern would be Explorer may just overpaint next time somebody move's a window.
I can make a form that consists entirely of just a straight horizontal line... but if that's not an option (you haven't said why), then you will have to use the Win 32API's.
You will get the best answer to your question if you describe what you are trying to do and in what context.
Are you trying to draw a Media Player type of overlay, that hangs in front of everything?