private void findToolStripMenuItem_Click(object sender, EventArgs e) { if (null == formFind) { formFind = new FormFind(this.trvResults); formFind.FormClosed += new FormClosedEventHandler(formFind_FormClosed); formFind.Owner = this; formFind.Location = this.trvResults.PointToScreen(new Point(this.trvResults.Left + this.trvResults.Width + 20, this.trvResults.Top + 15)); formFind.Show(); } formFind.Activate(); }
private void toolStripButtonFind_Click(object sender, EventArgs e) { if (formFind == null) { formFind = new FormFind(); formFind.Find += FormFind_Find; formFind.FormClosed += FormFind_FormClosed; formFind.Show(this); } else { formFind.Show(); } }
/// <summary> /// /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void FormPayload_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.F & e.Modifiers == Keys.Control) { tabEvent.SelectedTab = tabPageAscii; txtPayloadAscii.Select(); _formFind = new FormFind(this, txtPayloadAscii); _formFind.Owner = this; _formFind.TopMost = true; _formFind.Show(); } else if (e.KeyCode == Keys.Escape) { this.Close(); } else if (e.KeyCode == Keys.F3) { _formFind.DoSearch(); } }
private void findToolStripMenuItem_Click( object sender, EventArgs e ) { if ( null == formFind ) { formFind = new FormFind( this.trvResults ); formFind.FormClosed += new FormClosedEventHandler( formFind_FormClosed ); formFind.Owner = this; formFind.Location = this.trvResults.PointToScreen( new Point( this.trvResults.Left + this.trvResults.Width + 20, this.trvResults.Top + 15 ) ); formFind.Show(); } formFind.Activate(); }
/// <summary> /// Creates a new FormFind dialog /// </summary> /// <returns>the form find dialog</returns> FormFind ShowFind() { if (_formFind == null || _formFind.IsDisposed) { _formFind = new FormFind(); _formFind.HexBox = this.hexBox; _formFind.FindOptions = _findOptions; _formFind.Show(this); } else { _formFind.Focus(); } return _formFind; }