private void OverlayForm_Load(object sender, EventArgs e) { if (!Cheat.Hook("csgo")) { MessageBox.Show("Could not find CS:GO. Check if it's running and re-open the cheat.", "Unfair", MessageBoxButtons.OK, MessageBoxIcon.Error); Environment.Exit(-1); } RECT gameWindowRect = GetWindowRect(Cheat.Memory.Process.MainWindowHandle); Left = gameWindowRect.left; Top = gameWindowRect.top; Size = new Size(gameWindowRect.right - gameWindowRect.left, gameWindowRect.bottom - gameWindowRect.top); DoubleBuffered = true; cheatTask.Start(); moduleMenu.modules = Cheat.Modules; }