Triger an event in the code

  • Thread starter Thread starter james ou
  • Start date Start date
J

james ou

hi, everybody,

Can I triger an event in the code? For example, can I
triger a keydown event of textbox?

thanks
 
Hi James,

Handling the keydown event will, automatically call the event.

You could also just explicitly call the event, (not very elegant)
// TextBox1_KeyPress(null, null);

Regards,
Sankalp
 
* "james ou said:
Can I triger an event in the code? For example, can I
triger a keydown event of textbox?

Why do you need that?
 

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