inhumanoid
October 24th, 1999, 04:44 AM
If a user presses F5 a want my program to run a function.... How do I do that??
|
Click to See Complete Forum and Search --> : Pressing a key inhumanoid October 24th, 1999, 04:44 AM If a user presses F5 a want my program to run a function.... How do I do that?? Lothar Haensler October 25th, 1999, 11:19 AM set the KeyPreview property of your form to true, then: private Sub Form_KeyUp(KeyCode as Integer, Shift as Integer) If KeyCode = vbKeyF5 then MsgBox "F5!" End If End Sub codeguru.com
Copyright Internet.com Inc., All Rights Reserved. |