PDA

Click to See Complete Forum and Search --> : This must be easy ! Where're other events?[Resolved]


Pirate
Jun 17th, 2003, 04:58 AM
Where the hell did they go ? I wanted to add TextBox_Leave event but I can find only one event which is TextChanged !:confused:

DevGrp
Jun 17th, 2003, 05:48 AM
MS changed them. Try MouseLeave

Pirate
Jun 17th, 2003, 05:55 AM
:( . It's my bad luck . I think I would go back to VB . Anyways , is there something like this in C# ????

Private Sub TextBox1_Leave[/B](ByVal sender As Object, ByVal e As System.EventArgs) Handles TextBox1.Leave

End Sub[B]
This simply , fires after focus leaves textbox .

DevGrp
Jun 17th, 2003, 06:50 AM
Ok, I found it. Click on the yellow lightening bolt on the properties window. There you'll find Leave and Enter. After you double click leave, you'll see that the event handler is TextBox1_Leave.

Hope that helps.

dynamic_sysop
Jun 17th, 2003, 07:24 AM
in the windows generated code area put this :

this.textBox1.Leave += new System.EventHandler(this.textBox1_Leave);


then make your textbox_leave sub like this :

private void textBox1_Leave(object sender,System.EventArgs e)
{
MessageBox.Show("left textbox1");
}

Pirate
Jun 17th, 2003, 07:56 AM
Hey DevGrp . I found it . That's a big change in VS.NET 2003 I guess . A lot more easier than before . Thanks :D

PT Exorcist
Jun 17th, 2003, 01:13 PM
hmm? the event's in C# ALWAYS were in the lightning icon in the property window

Pirate
Jun 17th, 2003, 01:35 PM
No .:confused:

hellswraith
Jun 17th, 2003, 02:47 PM
Yes, they were/are in 2002 and 2003.