示例#1
0
            public NotificationForm(Keys hotkey)
            {
                NativeMethods.SetParent(Handle, NativeMethods.HWND_MESSAGE);
                NativeMethods.AddClipboardFormatListener(Handle);

                NativeHotkey.RegisterHotKey(this, hotkey);
            }
示例#2
0
 protected override void OnFormClosed(FormClosedEventArgs e)
 {
     NativeHotkey.UnregisterHotKey(this);
     base.OnFormClosed(e);
 }