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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top