Lock workstation III
Picture 1 \ As shown in Picture 1, before you copy and paste the following code to be compiled, not only the project MyBlog_Created_202407_09 must be created,but also the code CodeFile1.vb has to be added in. Picture 2 Imports System.Runtime.InteropServices Partial Public Class Form1 Private Sub Form1_HandleCreated(sender As Object, e As EventArgs) Handles Me.HandleCreated MyCode_put_in_This_module.DeleteBlankLines = New Delete_Blank_Lines(CType(sender, Form1).Handle) RegisterHotKey(Me.Handle, HotKey_ID1, MOD_ALT Or MOD_NOREPEAT, CUInt(Keys.A)) RegisterHotKey(Me.Handle, HotKey_ID2, MOD_ALT Or MOD_NOREPEAT, CUInt(Keys.B)) End Sub Protected Overrides Sub WndProc(ByRef m As Message) If m.Msg = WM_HOTKEY Then MyCode_put_in_This_module.OnHotKey(m) ...