private void optionsToolStripMenuItem_Click(object sender, EventArgs e) { _onClick = false; _otherformopen = true; Hide(); _fSettings = new frmSettings(); _fSettings.ShowDialog(); pbSelection.Visible = false; CaptureControl.GetBackgroundImage(); Show(); RefreshAccountList(); RefreshFolderList(); }
// set the starting point of the Selection Box private void frmCapture_MouseDown(object sender, MouseEventArgs e) { if (e.Button != MouseButtons.Left) { return; } // Get the screen we're capturing CaptureControl.CaptureScreen = Screen.FromPoint(Cursor.Position); CaptureControl.GetBackgroundImage(); this.TransparencyKey = Color.White; _onClick = true; // Get the click point relative to the screen we are capturing NativeClickPoint = MousePosition.Substract(CaptureControl.CaptureScreen.Bounds.Location); SelectionPoint = new Point(e.X, e.Y); pbSelection.Location = SelectionPoint; }