form focus event

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
 
K

kimiraikkonen

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top