|
-
August 27th, 2012, 06:39 AM
#2
Re: password protect application icon in system tray?
Set a flag (like a global bool) to "false" in the initial code/construct. Then, in the load event, set it to true. Then, attach an if/then to your resize event:
if(global.shouldShowPasswordForm){
//show password form
}
Set global.shouldShowPassordForm (a static member of a static class) to true when the program is minimized to the taskbar, and false while it is not. This will allow the program to load without showing the screen, and to be resized/minimized without the screen, as well - only showing it when the program is resized up from the taskbar. Hope this helps!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|