Click to See Complete Forum and Search --> : Window Focus
Simon Manners
January 10th, 2000, 06:35 PM
I have written an application that has requirement to maintain the window focus reagrdless of any other applications that are open. Hence if you try to lose the focus of the application it sets the focus back again immediately. Hence the desired affect is never to lose focus of my application. Can anyone help?
Lonely Wolf
January 11th, 2000, 05:09 AM
Try this:
private sub form_lostfocus()
me.setfocus
endsub
Simon Manners
January 11th, 2000, 05:12 PM
I have already looked at this. The problem with setfocus and lose focus is that their scope is only applicable within the application itself. Hence other applications that are open can steal the focus from my applications window. The MSDN can explain this better.
Good suggestion though.
Any more thoughts out there?
BrewGuru99
January 11th, 2000, 07:32 PM
You could try loading your form as a modal form.
Brewguru99
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.