samiullah478
Newcomer
- Joined
- Dec 20, 2006
- Messages
- 3
Aslam alikum
plz tell me abt that how to assign a short key to a button in vb.net like CTRL+S
plz tell me abt that how to assign a short key to a button in vb.net like CTRL+S
superButton.Text = "&Save" 'You’d probably set this through the designer
Private Sub Form1_KeyDown(ByVal sender As System.Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles MyBase.KeyDown
If e.Control And e.KeyCode = Keys.S Then
MessageBox.Show("wow")
End If
End Sub