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 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Sam HobbsRank #107 · 20.5K reputationPosted Mar 18, 2010, 12:10 PM EDT
Sailaja Y37 reputationPosted Mar 19, 2010, 2:27 AM EDT
either write a delegate or if uyou have a limited number of buttons.
Directly call that method in the case statement.