form focus event

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Amritha.Datta@gmail.com

    form focus event

    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
  • kimiraikkonen

    #2
    Re: form focus event

    On Aug 26, 11:33 pm, Amritha.Da...@g mail.com wrote:
    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

    Comment

    Working...