Programmatically send a click event to any given control

0
0

Hi,

Is there any way in code for me to “click” on a control ?
In windows forms I could send a mouse event to the control for example.
I’m unsure of how to do this or something similar in wisej.
In the simplest case I’d like to do the following:

foreach(var control in this.Controls) {
control.Click(); //how to do this bit.
}

Any ideas ?

Thanks,
Andi

  • You must to post comments
0
0

Hi Andi,

did you try PerformClick () method.

It should do what you want.

Best regards
Frank

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.