void tb_KeyDown(object sender, KeyEventArgs e) { if (e.KeyData == (Keys.K | Keys.Control)) { //forced show (MinFragmentLength will be ignored) (CurrentTB.Tag as TbInfo).popupMenu.Show(true); e.Handled = true; } if (e.KeyData == (Keys.Control | Keys.N)) { CreateTab(null); } if (e.KeyData == (Keys.Control | Keys.S)) { if (tsFiles.SelectedItem != null) { Save(tsFiles.SelectedItem); } } if (e.KeyData == (Keys.Control | Keys.F)) { FindForm ff = new FindForm(CurrentTB); ff.ShowDialog(); } }
/// <summary> /// 设置查询控件的属性 /// </summary> /// <param name="find">查询控件的实例</param> public void SetFindControlInfo(FindForm find) { find.DalCollection = Dal;//设置客户数据的数据访问函数库 find.PageViewID = FindPageViewID; //Response.Write(PageViewMeta.ColumnCount); //find.UserOnlineInfo = MyUser; MyUser.GetUserColumnIDs(ModuleID, "3", DalMetadata); }
public void ExecFind() { string selt = CurrentSyntaxEditor.SelectedText; if (selt != string.Empty) { FindForm.tbTextToFind.Text = selt; } FindForm.Show(); }
private void OpenFindForm() { if (!_stringtablesLoaded || FindFormOpen) { return; } var findForm = new FindForm(this); findForm.Show(); }
private void findToolStripMenuItem_Click(object sender, EventArgs e) { FindForm find = new FindForm(); if (find.ShowDialog() == DialogResult.Cancel) { return; } string lName = find.LastName; CustomerService customer = new CustomerService(); BindingData(customer.GetCustomersByLastName(lName)); }
private void FindBut_Click(object sender, EventArgs e) { try { FindForm find = new FindForm(server); find.ShowDialog(); InfoForm info = new InfoForm(find.infoAboutFoundedUsers); info.ShowDialog(); } catch (Exception ex) { MessageBox.Show(ex.Message, "Внимание!", MessageBoxButtons.OK, MessageBoxIcon.Error); } }
public override void Execute(TextBoxControl editor) { if (_dlgFind == null) { _dlgFind = new FindForm(editor); } if (!_dlgFind.Visible) { _dlgFind.Show(); } //TextLocation homeLocation = editor.GetLineHomeInfo(editor.Caret.Line); //if (homeLocation != TextLocation.Empty) //{ // editor.Caret.Position = homeLocation; // editor.Caret.UpdateCaretPosition(); // if (editor.HorizontalScroll.Value != 0 && editor.HorizontalScroll.Visible) // { // editor.HorizontalScroll.Value = 0; // editor.PerformLayout(); // } //} }
public void ExecFindNext() { FindForm.FindNext(); }
public void ShowFindDialog() { FindForm _f = new FindForm(rtf); _f.Show(); }
/* private Font _boldItalicFont; */ public void Find() { using (var form = new FindForm()) { form.TextToFind = _findText; if (form.ShowDialog(this) == DialogResult.OK) { _findText = form.TextToFind; if (!FindNext()) { XtraMessageBox.Show( Resources.SR_ResourceEditorUserControl_Find_TheTextWasNotFound, @"Zeta Resource Editor", MessageBoxButtons.OK, MessageBoxIcon.Information); } } } }
private void 찾기ToolStripMenuItem_Click(object sender, EventArgs e) { FindForm findForm = new FindForm(CurrentTB); findForm.ShowDialog(); }
private void findToolStripMenuItem_Click(object sender, EventArgs e) { findform = new ResxEditor.FindForm(); findform.OnFindPressed += f_OnFindPressed; findform.Show(this); }
public override void Execute(TextArea textArea) { FindForm.ShowFor(Control, false); }
public override void Execute(TextArea textArea) { FindForm.FindNext(true, false, string.Format("Search text «{0}» not found.", FindForm.LookFor)); }