private void OnExit(object sender, EventArgs e)
{
int modifier = 0;
if (Hotkey_Control) modifier |= 0x2;
if (Hotkey_Alt) modifier |= 0x1;
if (Hotkey_Shift) modifier |= 0x4;
if (Hotkey_Win) modifier |= 0x8;
if (modifier != 0)
UnregisterHotKey(IntPtr.Zero, 0);
trayIcon.Dispose();
Application.Exit();
}