Reputation: 8350
I am working on a Kiosk application. There is a Maintenance mode in my application. When my application enters into Maintenance mode, i want to show the user a watermark "Maintenance Mode Commenced".
I want this watermark to be shown through out my desktop. No matter what form is in focus. Is this possible ? Any ideas....
Note : This is Windows application using c#
Upvotes: 0
Views: 2161
Reputation: 25083
If your OS is Vista or Win7, can't you make a create a window that toplevel + translucent + maximized? Then the entire screen can say "MAINTENANCE MODE" in large friendly letters.
Here's some C# code that might help. I think what you want to do is called "alpha blending". (Haven't done it myself.)
This may be best, I'm not positive.
Upvotes: 2
Reputation: 9265
attach to the paint event of each form (maybe create a base form for all other forms to inherit)
http://msdn.microsoft.com/en-us/library/system.windows.forms.control.paint.aspx
you can draw your image using the graphics object provided in the handler.
Take a look at the first answer with code here:
http://bytes.com/topic/net/answers/118600-how-eliminate-tiling-windows-forms-background-images
Upvotes: 0