Results 1 to 3 of 3

Thread: Calling other events

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Nov 2001
    Location
    INDIA
    Posts
    31

    Calling other events

    Hi all,

    I want to call button1_Click event in Button2_Click in VB.NET.

    How can i call it.


    Can any one help me in this matter.

    Regards

    Nag K.
    Nagendra K

  2. #2
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    VB Code:
    1. Me.Button1_Click(sender, e)
    or
    VB Code:
    1. Me.Button1_Click(Nothing, Nothing)
    or
    VB Code:
    1. Me.Button1_Click(Me, Nothing)

  3. #3
    PowerPoster
    Join Date
    Dec 2003
    Location
    Bristol, England (but heart is in Virginia)
    Posts
    2,949
    HI,

    Or simply, if you don't need to identify the sender.

    VB Code:
    1. Button1.PerformClick
    Last edited by taxes; Jun 2nd, 2004 at 05:02 AM.
    Taxes
    The more I learn about VB.NET the more I like dBaseIII Plus

    The foregoing, whilst believed to be correct, is given without guarantee as to it's accuracy and entirely without recourse. You are required to decide for yourself whether or not it is suitable for your purposes and no liability for loss of any nature can be entertained.

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