Hi,
does anybody know why nothing happens when I use the gotfocus or lostfocus of a form. Apparently those events just don't get triggered.
THANKS :-)
Printable View
Hi,
does anybody know why nothing happens when I use the gotfocus or lostfocus of a form. Apparently those events just don't get triggered.
THANKS :-)
is this the only form in your application? i.e. are you expecting the events to fire when your "APP" loses focus, and not the form as such, or is it just a form that gets loaded within an app. I ask because I had a similar problem.
I've made shell program where from you can execute different other programs. So now I want to now wich form got the focus to trigger a method in my shell.
Also I found on the msdn some information concerning the focus.
nl.:
A form can receive focus only if it doesn't contain any controls that can receive the focus.
So now I have to find an other way to trigger the method in my shell.
You have to subclass to do detect whether the form has gained or lost focus. Take a look at this thread to understand more.