Aug 30th, 2000, 07:49 AM
I'm trying to emualte the Workstation Lockout thingy that WinNT does.
I've got 2 forms:
The first one has no border and is the same colour as the desktop. It's been sized to fill the entire screen (masking off the crap behind it) and I've used "SetWindowPos" to make it stay on top of the taskbar etc.
Now I have another form where someone enters a username and password in order to unlock the computer.
My problem is that I need to make this second form stay on top of the first one (which is already always on top).
I can't manage to do this reliably. Sometimes it works...others it doesn't work and cos I've also disabled ctrl+alt+del etc I have to reboot.
I've tried just using SetWindowPos on the second form, I've tried messing with the OwnerForm argument when I show the second form modally...I've even tried using an MDI form for the background one but I can't get rid of its title bar.
Any ideas how I can achieve this?
I've got 2 forms:
The first one has no border and is the same colour as the desktop. It's been sized to fill the entire screen (masking off the crap behind it) and I've used "SetWindowPos" to make it stay on top of the taskbar etc.
Now I have another form where someone enters a username and password in order to unlock the computer.
My problem is that I need to make this second form stay on top of the first one (which is already always on top).
I can't manage to do this reliably. Sometimes it works...others it doesn't work and cos I've also disabled ctrl+alt+del etc I have to reboot.
I've tried just using SetWindowPos on the second form, I've tried messing with the OwnerForm argument when I show the second form modally...I've even tried using an MDI form for the background one but I can't get rid of its title bar.
Any ideas how I can achieve this?