• Advertisement

Archived

This topic is now archived and is closed to further replies.

.NET Drawing to the entire screen

This topic is 5095 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I am working on a .NET program and I need to draw to the entrie screen(above all the other windows). I am going to need to draw text overlays on a specific monitor. How can I get a graphics object for an entire screen. I tried some things but the stuff I drawed didn''t show up. Thanks

Share this post


Link to post
Share on other sites
Advertisement
This might be a little tacky but I guess it''s worth a try:

You could set your form''s border style to none and its window state to maximized. Also, set the backcolor to transparent. You would have to draw your own form, though, but you would be able to draw to the entire screen.

Share this post


Link to post
Share on other sites
Thanks for the help guys. I ended up using langguy''s solution because it works good and doesn''t require any PInvoke. I set the window as always on top, set the transparent key, and then set the border to none. Then I moved the window to the screen I wanted and set the size to the size of the entire screen. Thanks. I wrote all that just incase anyone else is looking for it in the future. :-)

Share this post


Link to post
Share on other sites

  • Advertisement