Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Visual Dbase > Re: LostFocus E...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 3 of 4 Topic 38 of 132
Post > Topic >>

Re: LostFocus Event help

by butlerbob@[EMAIL PROTECTED] (Bob Butler) Dec 14, 2003 at 07:10 AM

"Randi" <RSaddler@[EMAIL PROTECTED]
> wrote in message
news:<R9TCb.11784$JW3.8837@[EMAIL PROTECTED]
>...
> Hi All,
> I have a problem on a username password login form.  I use:
> txtPassword.Text = StrConv(txtPassword.Text, vbProperCase) to validate
the
> proper case when someone enters their name and password.  It work when
you
> use the button to continue, but if you hit enter on your keyboard the
event
> apparently doesnt lose focus and it says you entered the wrong password.
 

Neither the LostFocus nor Validate events are reliable IMO because
they do not fire consistently.  Clicking toolbar buttons, menu items
and pressing enter to trigger the default command button are just a
few cases where they don't happen.  You can use them for simple
validation if you want but never assume that they will run.  In this
case, have the command button code do the StrConv.
 




 4 Posts in Topic:
LostFocus Event help
"Randi" <RSa  2003-12-14 06:10:57 
Re: LostFocus Event help
"BeastFish" <  2003-12-14 02:49:10 
Re: LostFocus Event help
butlerbob@[EMAIL PROTECTE  2003-12-14 07:10:36 
Re: LostFocus Event help
"Steve Gerrard"  2003-12-14 10:53:07 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Nov 22 7:11:27 CST 2008.