[dba-VB] Trigger an OnClick_Event of a button

paul.hartland at fsmail.net paul.hartland at fsmail.net
Wed Dec 17 04:43:38 CST 2003


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


More information about the dba-VB mailing list