one field on a winforms, validate not firing

  • Thread starter Thread starter Jeff Jarrell
  • Start date Start date
J

Jeff Jarrell

I have one textbox on a form. Nothing else. The validate event doesn't
fire. Drop another textbox on the form and the validate event fires. Set
tabstop = false on the 2nd text box and the validate event on textbox1
doesn't fire again.

I now it sounds silly with only one tab stop but it is for a barcode
scanner. scan, scan, scan, esc. Thats it.

help... I need a work around.
 
Jeff,

I use the leave event if the validate event does not what I want.

Cor
 
The validate event doesn't fire unless you leave the textbox,
like if you tab out of it. In my update forms, when they hit
Save, I invoke the validate event myself me.Validate() in
case they have changed the textbox they are sitting in and
didn't tab out of it.

Hope this helps.
Robin S.
 
Back
Top