PerformClick method

  • Thread starter Thread starter Bnob
  • Start date Start date
Bnob said:
It is possible to do a Button.PerformClick in .net CF ?

Any code to suggest to do this?

Any reason why you can't just call the event handler yourself?

button1_Click(this, EventArgs.Empty);

You'll have to use Invoke if you do this from outside the GUI thread.

button1.Invoke(new EventHandler(button1_Click));

HTH.
 
Back
Top