Results 1 to 3 of 3

Thread: To simulate button click in C#

  1. #1
    Join Date
    Jan 2009
    Posts
    5

    To simulate button click in C#

    Hello,

    Is it possible to somehow simulate button click in C#?

    Thanks!

  2. #2
    Join Date
    Jan 2009
    Posts
    44

    Re: To simulate button click in C#

    Hello SunilKumar!
    Can you explain a bit what you are trying to do?
    This will give us clear idea about what you want to do.
    You can call the method that handles the Click event at any point.

    Code:
    if(someCondition)
    Button1_Click(null, null);

  3. #3
    Join Date
    Jan 2009
    Posts
    5

    Re: To simulate button click in C#

    Well what i am trying to ask you is when user clicks Button1 then some attributes are added to Button2 which then should invoke VB Script function.
    I mean a I need Button1 to Add script attributes to Button2 (Because I am using parameters in VB script) and then Button2 should run VB script. I tried to call Button2's Click method (Button2_Click(null, null)), but id did not run the VB script, so user needs to actually click Button2 also, which is bad. Can I somehow work around this?

Similar Threads

  1. I want to re-enable the right click button of my mouse.
    By Dhulipala in forum Hardware Peripherals
    Replies: 3
    Last Post: 02-03-2012, 10:36 AM
  2. Right click button is not working in Asus Eee PC 900
    By Marquise in forum Hardware Peripherals
    Replies: 5
    Last Post: 08-08-2011, 10:28 AM
  3. how do I get button click on PHP page?
    By Ramona19 in forum Software Development
    Replies: 7
    Last Post: 20-06-2011, 03:09 AM
  4. Android Spinner on button click
    By Robert Chandler in forum Software Development
    Replies: 1
    Last Post: 20-04-2011, 12:51 PM
  5. left click button behaves like a right one
    By iris_777 in forum Windows Software
    Replies: 2
    Last Post: 02-11-2010, 03:31 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,711,695,502.55403 seconds with 16 queries