Re: one field on a winforms, validate not firing

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



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.
-----------------------

"Jeff Jarrell" <jjarrel_NOSPAM@xxxxxxxxx> wrote in message
news:%23U1DXR0GHHA.4588@xxxxxxxxxxxxxxxxxxxxxxx
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.





.



Relevant Pages

  • one field on a winforms, validate not firing
    ... Drop another textbox on the form and the validate event fires. ... doesn't fire again. ... Thats it. ...
    (microsoft.public.dotnet.languages.vb)
  • Re: one field on a winforms, validate not firing
    ... I use the leave event if the validate event does not what I want. ... Drop another textbox on the form and the validate event fires. ... doesn't fire again. ... Thats it. ...
    (microsoft.public.dotnet.languages.vb)
  • Re: one field on a winforms, validate not firing
    ... I use the leave event if the validate event does not what I want. ... Drop another textbox on the form and the validate event fires. ... doesn't fire again. ...
    (microsoft.public.dotnet.languages.vb)
  • TextBox Validation and Containers
    ... onto Containers like Tab Pages? ... I've got a funny where the Validating Event for a TextBox doesn't ... fire when I tab out of the TextBox, ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Enter and Leave events
    ... when I show another (only fire the first time). ... if you tab through controls on a form ... the Enter event will fire each time your cursor enters a textbox, ...
    (microsoft.public.dotnet.framework.windowsforms)