Results 1 to 9 of 9

Thread: This must be easy ! Where're other events?[Resolved]

  1. #1

    Thread Starter
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083

    This must be easy ! Where're other events?[Resolved]

    Where the hell did they go ? I wanted to add TextBox_Leave event but I can find only one event which is TextChanged !
    Last edited by Pirate; Jun 17th, 2003 at 08:03 AM.

  2. #2
    Frenzied Member DevGrp's Avatar
    Join Date
    Nov 2001
    Location
    Charlotte, NC
    Posts
    1,256
    MS changed them. Try MouseLeave

  3. #3

    Thread Starter
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    . 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 .

  4. #4
    Frenzied Member DevGrp's Avatar
    Join Date
    Nov 2001
    Location
    Charlotte, NC
    Posts
    1,256
    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.

  5. #5
    Frenzied Member dynamic_sysop's Avatar
    Join Date
    Jun 2003
    Location
    Ashby, Leicestershire.
    Posts
    1,142
    in the windows generated code area put this :
    Code:
    this.textBox1.Leave += new System.EventHandler(this.textBox1_Leave);
    then make your textbox_leave sub like this :
    Code:
    private void textBox1_Leave(object sender,System.EventArgs e)
    	{
                MessageBox.Show("left textbox1");
    	}
    ~
    if a post is resolved, please mark it as [Resolved]
    protected string get_Signature(){return Censored;}
    [vbcode][php] please use code tags when posting any code [/php][/vbcode]

  6. #6

    Thread Starter
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    Hey DevGrp . I found it . That's a big change in VS.NET 2003 I guess . A lot more easier than before . Thanks

  7. #7
    yay gay PT Exorcist's Avatar
    Join Date
    Apr 2002
    Location
    . . . my reason of shame
    Posts
    2,729
    hmm? the event's in C# ALWAYS were in the lightning icon in the property window
    \m/\m/

  8. #8

    Thread Starter
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    No .

  9. #9
    PowerPoster hellswraith's Avatar
    Join Date
    Jul 2002
    Location
    Washington St.
    Posts
    2,464
    Yes, they were/are in 2002 and 2003.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width