Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_vb thread: Validate event in user controls


Message #1 by "Alistair Connor" <alistairconnor@f...> on Tue, 26 Feb 2002 15:05:24
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_001_01C1BED7.6C1A3EF0
Content-Type: text/plain;
	charset="iso-8859-1"

lost focus isn't fail safe either.  if you have a default button set, and
press enter, it will not fire for the control that currently has focus.

-----Original Message-----
From: Ian Jowett [mailto:virtuian@y...]
Sent: 26 February 2002 15:01
To: professional vb
Subject: [pro_vb] Re: Validate event in user controls


hi alistair

Have you tried the lost_focus event for each of your user controls everytime
the control loses focus validate it.


----- Original Message -----
From: "Alistair Connor" <alistairconnor@f...>
To: "professional vb" <pro_vb@p...>
Sent: Tuesday, February 26, 2002 3:05 PM
Subject: [pro_vb] Validate event in user controls


> Hi,
>
> I've got a data validation problem : I need to do field-level validation
> on forms which contain user controls. I use the validate event, and it
> works fine for standard VB controls (textbox etc), it also works fine in
> my user controls when you tab from field to field, but when you use the
> mouse to move to a new field, the validate event is not fired.
>
> I suppose I could trap mouse clicks, but I would then have to find out
> which control had previously been active in order to validate it. I would
> really prefer it if the validate event worked.
>
> Has anyone encountered this, or a similar issue? Any suggestions?
>
> Cheers
> Alistair



_________________________________________________________

Do You Yahoo!?

Get your free @yahoo.com address at http://mail.yahoo.com






  Return to Index