focus

  • Thread starter Thread starter Cyrus Chiu
  • Start date Start date
C

Cyrus Chiu

I find that Form doesnt has the event Focus or GotFocus, then i use
OnGotFocus.
However i dont know why OnGotFocus will be triggered once when the form is
closed?
 
Hi Cyrus,
According to MSDN for forms you should use Activate(OnActivate) and
Deactivate(OnDeactivate) events instead.

HTH
B\rgds
100
 
i found that i works with Enter event, but not Activate event.
But there is still a problem that Enter event will be called too when Closed
event is called.
 
Frankly, I don't understand what the problem is.
Why don't you use Activate as MSDN suggests?

B\rgds
100
 
Activate event does trigger when i want activate a MdiChild, so i need to
use other event.
 
So, when do you want to have focus event triggered?
Maybe you should provide more info about the problem if you want people on
the group to be able to help you.

B\rgds
100
 
Back
Top