|
-
Feb 2nd, 2010, 10:07 AM
#1
Thread Starter
Lively Member
Unminimizable window
How to load a form that will restrict the form itself to be minimized?
-
Feb 2nd, 2010, 10:26 AM
#2
Re: Unminimizable window
If you set the MinimizeBox property to False, then the user won't be able to click it. That will probably be sufficient.
My usual boring signature: Nothing
 
-
Feb 2nd, 2010, 10:33 AM
#3
Thread Starter
Lively Member
Re: Unminimizable window
I tried it man. I even hide the control box. but the windows + D short cut can minimize it. The scenario will be. it will be the only window that can be used in that computer by the user. but the administrator account can close the application
-
Feb 2nd, 2010, 10:38 AM
#4
Re: Unminimizable window
Why not set the FormBorderStyle's property to a style which doesn't include that button, like SizableToolWindow or FixedToolWindow ¿
VB.NET MVP 2008 - Present
-
Feb 2nd, 2010, 10:47 AM
#5
Thread Starter
Lively Member
Re: Unminimizable window
Windows + D is a shortcut key of windows to minimize all opened windows. I've tested the 2 FormBorderStyles.. but still it minimizes
-
Feb 2nd, 2010, 10:47 AM
#6
Re: Unminimizable window
That probably has the same issues. He's trying to prevent OS overrides, which is more complicated because the app doesn't even have to know about them.
My usual boring signature: Nothing
 
-
Feb 2nd, 2010, 10:50 AM
#7
Re: Unminimizable window
So you always want this form open, is that what you actually mean ¿
VB.NET MVP 2008 - Present
-
Feb 2nd, 2010, 10:55 AM
#8
Thread Starter
Lively Member
Re: Unminimizable window
yeah.. the same feature in the groceries in which the window for the cashier is only seen and cannot be minimized.
-
Feb 2nd, 2010, 11:00 AM
#9
Re: Unminimizable window
I know you can use the SystemParametersInfo API function to block system keys such as Windows + D.
What OS are you using ¿
VB.NET MVP 2008 - Present
-
Feb 2nd, 2010, 11:04 AM
#10
Thread Starter
Lively Member
Re: Unminimizable window
Windows XP, yeah I've heard that it is API but I don't know how it goes.
-
Feb 2nd, 2010, 01:00 PM
#11
Re: Unminimizable window
There are many other shortcuts, like ALT-TAB, ALT-ESC, CTRL-ESC, WIN-R, CTRL+ALT+DEL, etc.
(There's an idea - you could set your app as a windows shell instead of explorer.exe). This should do the trick and this can be done relatively easy.
-
Feb 2nd, 2010, 01:56 PM
#12
Re: Unminimizable window
could you use the Resizing event, and check the WindowState? If it's minimized, then reset it back to normal.... I think that might work.
But... I have my reservations about changing the way windows works, even for a single application.
-tg
Tags for this Thread
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
|