Results 1 to 4 of 4

Thread: Super EASY Question... How to click a button in code

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    May 2002
    Posts
    142

    Super EASY Question... How to click a button in code

    This seems so simple but I need to know how to click a button in code. I keep getting the error:
    Argument not specified for parameter 'e' of private sub button28_click( sender as argument, e as system.Eventargs)

    Any help w b great.
    Cheers,
    Brain Dead Programmer ---Need more Sleep.....

  2. #2
    Fanatic Member
    Join Date
    May 2002
    Posts
    746
    Button1_Click(sender, e)

  3. #3
    Frenzied Member dynamic_sysop's Avatar
    Join Date
    Jun 2003
    Location
    Ashby, Leicestershire.
    Posts
    1,142
    you can also use Button.PerformClick()
    eg:

    VB Code:
    1. Button1.PerformClick()
    ~
    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]

  4. #4

    Thread Starter
    Addicted Member
    Join Date
    May 2002
    Posts
    142

    Sweet

    Sweet Thanks,
    I knew it had to be simple..... This forums rocks!!
    Thanks, again
    MUST GET MORE SLEEP...........

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