This is what i have
When i press F1 or F2, i get an error msg "Compile error : Sub or Function not defined"
Can anyone please help me? Thank you!
i'm using vb 6.0 enterprise edition
Code:
Public Sub Form_Load() KeyPreview = True End Sub
Code:
Private Sub Form_KeyDown(KeyCodeConstants As Integer, Shift As Integer) KeyPreview = True If KeyCodeConstants = vbKeyF1 Then cmd1_Click If KeyCodeConstants = vbKeyF2 Then cmd2_Click End Sub
Can anyone please help me? Thank you!
i'm using vb 6.0 enterprise edition
Comment