455 16

Hotkey for Application

Hotkey or Combination that can effect everywhere inside the application
Copy Embed Code
<iframe id="embedFrame" style="width:600px; height:300px;"
Click on the embed code to copy it into your clipboard Width Height
Leave empty to retrieve all the content Start End
Private Sub Form_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load ' Add the following line in order to enable the capability to capture the keyboard events before any other element in the form. Me.KeyPreview = True End Sub Private Sub Hotkeys_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles MyBase.KeyDown ' The Alt + P Hotkey raise the event Button1.Click If (e.Alt AndAlso (e.KeyCode = Keys.P)) Then RaiseEvent Button1.Click End If
If you want to be updated about similar snippets, Sign in and follow our Channels

blog comments powered by Disqus