I have a form that has 20 buttons on it.
I want to be able to control those Buttons from the number pad.
here's what I have:
Private Sub Form1_KeyUp(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles Me.KeyUp
Select e.KeyCode
'Time and Date
Case Keys.NumPad1
** How do I get this to = Button1.click (so that it press button 1 on the screen) **
Best regards,
James
2 Replies
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Sailaja YPosted Mar 19, 2010, 6:27 AM
either write a delegate or if uyou have a limited number of buttons.
Directly call that method in the case statement.
Sam HobbsPosted Mar 18, 2010, 4:10 PM