Hello,
Is it possible to somehow simulate button click in C#?
Thanks!
Hello,
Is it possible to somehow simulate button click in C#?
Thanks!
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);
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?
Bookmarks