|
-
September 30th, 2009, 03:04 AM
#1
VB 2005 shortcut button
i need some help in understanding shortcut button code as well as writing them
i have created a button on a form that refuses to operate . the codes are right
its enabled, visible. mouse not disable.
but it just refuses to operate
so i'm trying out another way.. but programming a shortcut button
in the program left by my predecessor
Private Sub frmReport1_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles MyBase.KeyPress
Select Case e.KeyChar
Case ChrW(20) 'if staff press 'Ctrl-T' to terminate
Application.Exit()
End Select
End Sub
is ChrW(20) preset or something? i seriously cant figure it out
the operation of my shortcut button is that
when in form2, depressing the shortcut keys will call up form1 and close form2
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|