public MegaScopeForm() { InitializeComponent(); this.Opacity = 0; Cursor.Hide(); // Window //screen = Screen.PrimaryScreen.Bounds; screen = new Rectangle(0, 0, 1920, 1080); this.Width = screen.Width / screenScale; this.Height = screen.Height / screenScale; pictureBox.Width = this.Width; pictureBox.Height = this.Height; size = new Size(screen.Width / cropScale, screen.Height / cropScale); xPos = (screen.Width - size.Width) / 2; yPos = (screen.Height - size.Height) / 2; // Timer updateTimer.Interval = 1000 / 60; // Key listener ghk = new Hotkeys.GlobalHotkey(0, Keys.Oemtilde, this); }
public frmDashboard() { InitializeComponent(); Control.CheckForIllegalCrossThreadCalls = false; ghk = new Hotkeys.GlobalHotkey(Constants.ALT, Keys.None, this); }