|
-
May 14th, 2006, 02:20 PM
#1
Thread Starter
Member
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
-
May 14th, 2006, 02:40 PM
#2
Re: Form always on top.
See if fulfills your requirements.
-
May 14th, 2006, 02:44 PM
#3
Thread Starter
Member
Re: Form always on top.
Hi MartinLiss,
I have tried that, it only seems to work with other forms in my application.
Truz
-
May 14th, 2006, 02:47 PM
#4
Re: Form always on top.
That's correct so take a look at this.
-
May 14th, 2006, 02:50 PM
#5
Thread Starter
Member
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
-
May 14th, 2006, 03:38 PM
#6
Re: Form always on top.
Did you see method #3 in that thread?
-
May 14th, 2006, 05:30 PM
#7
Thread Starter
Member
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
-
May 14th, 2006, 10:50 PM
#8
Addicted Member
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 ?
Keith_VB6
If you have any further questions, just ask.
If this solves things, then please mark the thread resolved.
[Thread Tools] --> [Mark Thread Resolved]
-
May 14th, 2006, 10:56 PM
#9
PowerPoster
Re: Form always on top.
I agree with Keith. If you do that you are defeating the purpose of multi-tasking.
-
May 15th, 2006, 03:28 AM
#10
Thread Starter
Member
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
-
May 15th, 2006, 04:46 AM
#11
PowerPoster
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 ..
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
|