Home All Groups Group Topic Archive Search About

one field on a winforms, validate not firing

Author
9 Dec 2006 3:42 AM
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.

Author
9 Dec 2006 5:33 AM
Cor Ligthert [MVP]
Jeff,

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

Cor

Show quoteHide quote
"Jeff Jarrell" <jjarrel_NOSPAM@yahoo.com> schreef in bericht
news:%23U1DXR0GHHA.4588@TK2MSFTNGP05.phx.gbl...
>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.
>
>
>
Author
9 Dec 2006 6:18 PM
Jeff Jarrell
Ok, sounds good.

Thanks,
jeff

Show quoteHide quote
"Cor Ligthert [MVP]" <notmyfirstn***@planet.nl> wrote in message
news:usxFTN1GHHA.960@TK2MSFTNGP04.phx.gbl...
> Jeff,
>
> I use the leave event if the validate event does not what I want.
>
> Cor
>
> "Jeff Jarrell" <jjarrel_NOSPAM@yahoo.com> schreef in bericht
> news:%23U1DXR0GHHA.4588@TK2MSFTNGP05.phx.gbl...
>>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.
>>
>>
>>
>
>
Author
9 Dec 2006 7:19 AM
RobinS
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.
-----------------------

Show quoteHide quote
"Jeff Jarrell" <jjarrel_NOSPAM@yahoo.com> wrote in message
news:%23U1DXR0GHHA.4588@TK2MSFTNGP05.phx.gbl...
>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.
>
>
>