-
Window Focus
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?
-
Re: Window Focus
Try this:
private sub form_lostfocus()
me.setfocus
endsub
-
Re: Window Focus
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?
-
Re: Window Focus
You could try loading your form as a modal form.
Brewguru99