form focus event

  • Thread starter Thread starter Amritha.Datta
  • Start date Start date
A

Amritha.Datta

Can some one tell me which event will be fired when we say
form.focus() in C# .NET 2008?

I tried Activated, Load and Enter. But it did not fire.

Please let me know.

THanks
 
Can some one tell me which event will be fired when we say
form.focus() in C# .NET 2008?

I tried Activated, Load and Enter. But it did not fire.

Please let me know.

THanks

Could you be more specific, if you're referring to current form
instance try using:

this.Focus();

Plus, you need to add event handler to raise form's "activated" and
"Enter" events in C# unlike using "Handles" clause in VB.

Thanks,

Onur Güzel
 
Back
Top