-
Form always on top.
I now how to make my Form always on top before you post the WindowsPos code. :) What I am after is... When my Form is on top, I do not want users to be able to access anything behind it. Although it is on top you could still type in notepad etc...
What I am after is the same sort of result you get from a MessageBox, when you click out the MessageBox you get a beep and the title bar flashes, I am not after the beep and the flash, just full focus on my Form like the MessageBox.
Thanks,
TrUz
-
Re: Form always on top.
See if fulfills your requirements.
-
Re: Form always on top.
Hi MartinLiss,
I have tried that, it only seems to work with other forms in my application.
Truz
-
Re: Form always on top.
That's correct so take a look at this.
-
Re: Form always on top.
Yeah I understand that and that works yes, but only for Forms in my application. I need this to happend for all applications, desktop etc...
I do not want users to be able to do anything until they have done whats required on this form.
Cheers,
TrUz
-
Re: Form always on top.
Did you see method #3 in that thread?
-
Re: Form always on top.
Yes I did. Let me explain again.
I am using the API call to make my form on top already. But, even though my form is on top I can still use the start button or type in notepad etc...
What I want to be able to do is stop this like MessageBox's do, i.e. the user must do what's required on my form before he/she can do anything else in Windows.
Hope this makes it clearer,
TrUz
-
Re: Form always on top.
I'm sorry, please don't take any offense. But, "the user must do what's required on my form before he/she can do anything else in Windows" is just wrong in so many ways.
I can't see any good coming from this. It's the user's PC, if he/she wants to minimize a window, put it behind another window, etc.. That is his/her choice. We must all respect the end user.
Under what possible legitimate reason would you need to do this ?
-
Re: Form always on top.
I agree with Keith. If you do that you are defeating the purpose of multi-tasking.
-
Re: Form always on top.
Well it is for work and it is an application that stops applications from running, some people are allowed to run these applications. The form that is displayed is a login form, I do not want to the users to be able use anything else until they either login or cancel. If they cancel it closes the application, if they login they can carry on using it.
TrUz
-
Re: Form always on top.
Check out the System Locker code in this link ..
http://www.pscode.com/vb/scripts/Sho...61991&lngWId=1
Used primarily for security apps ..