Desktop Switcher -
private List<Button> desktopButtons = new List<Button>(); private Timer refreshTimer; public DesktopSwitcherForm()
if (m.Msg == WM_HOTKEY) hotkeyAction?.Invoke(); return true; return false; desktop switcher
public class GlobalHotkey : IMessageFilter desktopButtons = new List<
var desktopIds = VirtualDesktopManager.GetDesktopIds(); FlowLayoutPanel panel = new FlowLayoutPanel() Dock = DockStyle.Fill ; this.Controls.Clear(); this.Controls.Add(panel); private Timer refreshTimer
[DllImport("user32.dll")] private static extern bool RegisterHotKey(IntPtr hWnd, int id, uint fsModifiers, uint vk);
