Desktop Switcher • High Speed

Button newBtn = new Button() Text = "+", Width = 60, Height = 60, BackColor = Color.Lime ; newBtn.Click += (s, e) => VirtualDesktopManager.CreateDesktop(); panel.Controls.Add(newBtn);

private List<Button> desktopButtons = new List<Button>(); private Timer refreshTimer; public DesktopSwitcherForm()

[DllImport("user32.dll")] private static extern bool RegisterHotKey(IntPtr hWnd, int id, uint fsModifiers, uint vk); desktop switcher

Type serviceType = Type.GetTypeFromCLSID(new Guid("aa509086-5ca9-4c25-8f95-589d3c07b48a")); dynamic instance = Activator.CreateInstance(serviceType); return instance;

void GetId(out Guid guid); void GetName(out string name); Button newBtn = new Button() Text = "+",

InitializeComponent(); this.FormBorderStyle = FormBorderStyle.None; this.TopMost = true; this.BackColor = Color.Black; this.Opacity = 0.85; this.StartPosition = FormStartPosition.Manual; this.Location = new Point(Screen.PrimaryScreen.Bounds.Width - 300, 50); this.Size = new Size(280, 80); LoadDesktops(); refreshTimer = new Timer() Interval = 2000 ; refreshTimer.Tick += (s, e) => LoadDesktops(); refreshTimer.Start();

[ComImport] [Guid("6b335ad5-2037-4456-9bd9-fbdbaaed4d87")] [InterfaceType(ComInterfaceType.InterfaceIsIUnknown)] interface IObjectArray Width = 60

static void Main()