[dba-VB] Trigger an OnClick_Event of a button

Jim DeMarco Jdemarco at hshhp.org
Wed Dec 17 07:08:50 CST 2003


Paul,

Just set the command button's "Default" property to True.

HTH,

Jim DeMarco
Director Product Development
Hudson Health Plan



-----Original Message-----
From: paul.hartland at fsmail.net [mailto:paul.hartland at fsmail.net]
Sent: Wednesday, December 17, 2003 5:44 AM
To: dba-vb
Subject: [dba-VB] Trigger an OnClick_Event of a button


To all,
 
I have a simple logon screen (username, password, OkButton, CancelButton).  Once the user enteres the password they either have to tab off it to go to the OkButton or just click the OkButton.  They (including the powers that be) now want to press Enter/Return in the password field and logon.  I used the KeyPress_Event to detect for Enter and move the focus to the ok button, now I need to trigger the OkButtons OnClick_Event.  Anyone any ideas how I can trigger the event, I know I could just put the same code in the KeyPress_Event of the password field (but really don't wish to do that).
 
Thanks in advance for all your help 
 
Paul Hartland
Freeserve AnyTime - HALF PRICE for the first 3 months - Save £7.50 a month 
www.freeserve.com/anytime
_______________________________________________
dba-VB mailing list
dba-VB at databaseadvisors.com
http://databaseadvisors.com/mailman/listinfo/dba-vb
http://www.databaseadvisors.com



***********************************************************************************
"This electronic message is intended to be for the use only of the named recipient, and may contain information from Hudson Health Plan (HHP) that is confidential or privileged.  If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited.  If you have received this message in error or are not the named recipient, please notify us immediately, either by contacting the sender at the electronic mail address noted above or calling HHP at (914) 631-1611. If you are not the intended recipient, please do not forward this email to anyone, and delete and destroy all copies of this message.  Thank You".
***********************************************************************************



More information about the dba-VB mailing list