[dba-VB] Trigger an OnClick_Event of a button

Bill Kollodge bkollodge at parkindustries.com
Wed Dec 17 07:38:50 CST 2003


In the KeyPress_Event, call button_click.

Bill


-----Original Message-----
From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of paul.hartland at fsmail.net
Sent: December 17, 2003 4:44
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



More information about the dba-VB mailing list