Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 02-02-2009
Member
 
Join Date: Jan 2009
Posts: 5
To simulate button click in C#

Hello,

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

Thanks!
Reply With Quote
  #2  
Old 02-02-2009
Member
 
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);
Reply With Quote
  #3  
Old 02-02-2009
Member
 
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?
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


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


All times are GMT +5.5. The time now is 11:25 PM.