Where the hell did they go ? I wanted to add TextBox_Leave event but I can find only one event which is TextChanged !:confused:
Printable View
Where the hell did they go ? I wanted to add TextBox_Leave event but I can find only one event which is TextChanged !:confused:
MS changed them. Try MouseLeave
:( . 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 .
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.
in the windows generated code area put this :
then make your textbox_leave sub like this :Code:this.textBox1.Leave += new System.EventHandler(this.textBox1_Leave);
Code:private void textBox1_Leave(object sender,System.EventArgs e)
{
MessageBox.Show("left textbox1");
}
Hey DevGrp . I found it . That's a big change in VS.NET 2003 I guess . A lot more easier than before . Thanks :D
hmm? the event's in C# ALWAYS were in the lightning icon in the property window
No .:confused:
Yes, they were/are in 2002 and 2003.