Mimic mouse event

S

Suresh Kumar

Hi,
I would like to generate an event automatically without user's input. I have
a form which is inherited from a baseform. The base form has a command
button control and I cannot call that event directly in my code coz the base
class event handler is private.

So I want to generate that event, it automatically fires that event.

Pls help me. I appreciate your help
thanks
Suresh
 
H

Herfried K. Wagner [MVP]

* "Suresh Kumar said:
I would like to generate an event automatically without user's input. I have
a form which is inherited from a baseform. The base form has a command
button control and I cannot call that event directly in my code coz the base
class event handler is private.

So I want to generate that event, it automatically fires that event.

Call the button's 'PerformClick' method.
 

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