Home All Groups Group Topic Archive Search About

GotFocus event never fires for form

Author
5 Jun 2009 2:33 PM
Ty
I am flashing the window of my form with a timer when the form loads.
The window opens in a minimized state. I want to disable the timer
when the window gets focus, but I have found that the GotFocus event
never fires not once in the entire life time of the form.

Any thoughts?

Ty

Author
5 Jun 2009 3:15 PM
Ty
I figured out to use the Activated event which does fire.

Ty
Author
6 Jun 2009 7:02 AM
Cor Ligthert[MVP]
Ty,

Probably not for you, but for others searching in this newsgroup, be aware
that this activating goes every time if there is something that hides the
form and it activates again.

Therefore it should in my opinion be used with a kind of switch which is set
by the timer which tells that it is activated because of that timer.

Cor

Show quoteHide quote
"Ty" <tbar***@lewistownhospital.org> wrote in message
news:bfe0bb8e-ebd2-4717-b693-b045397467a4@j12g2000vbl.googlegroups.com...
>I figured out to use the Activated event which does fire.
>
> Ty