ButtonClick method.

P

Przemek

Hi.
How can I raise button method with no pushing that button manualy.
I would like to do something like that:
button1->click().
Just want to execute button event function.
Good Day, havy nice work (going fast). Thanks.
 
H

Herfried K. Wagner [MVP]

* "=?Utf-8?B?SmFrb2IgQ2hyaXN0ZW5zZW4=?= said:
Call Button.PerformClick() which will raise the button Click event.

Notice that the button must be visible and enabled to make this work.
 
G

Guest

You can always inherit the Button class and then call the On* methods from
the inherited class. E.g. calling OnClick will fire the Click event.

Regards, Jakob.
 

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

Top