Simple Question: Make an Event Occur

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have code attached to the 'Validating' event of a TextBox (called when the user makes a change to the field). When I fill this texbox manually in code, I would like to make the same code execute as if the user had typed it in.

I can't call txtName_Validating() because it needs the 'sender' and 'e' arguments. I don't even know what this is called to look it up on-line. Can anyone shed some light...

Thanks
Denise
 
* =?Utf-8?B?RGVuaXNl?= said:
I can't call txtName_Validating() because it needs the 'sender' and
'e' arguments. I don't even know what this is called to look it up
on-line. Can anyone shed some light...?

You can call the form's 'Validate' method, maybe that's what you are
looking for.
 

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

Similar Threads

TextBox lost focus 2
validate controls 4
listbox event lost 2
MDI Parent-Child Multiple Events Firing 0

Back
Top