Exemple #1
0
        private void TextBox1_Press(object sender, KeyPressEventArgs e)
        {
            FindBox frm2 = new FindBox();

            if (e.KeyChar == 13) //Enter 的键值为13
            {
                string str = textBox1.Text.Trim().ToString().ToUpper();
                if (!string.IsNullOrEmpty(str))
                {
                    select.getTextValue(str);
                    frm2.ShowDialog(this);
                }
                else
                {
                    MessageBox.Show("Eqid should not be null !", "Null Value", MessageBoxButtons.OK, MessageBoxIcon.Warning);
                }
            }
        }
Exemple #2
0
        private void Remote_KeyDown(object sender, KeyEventArgs e)
        {
            FindBox frm2 = new FindBox();

            // use Ctrl+F
            if (e.Control & e.KeyCode == Keys.F)
            {
                frm2.ShowDialog();
            }
            if (e.KeyCode == Keys.F5)
            {
                //this.BuildingTree(txthelper.txtToTable());
                menu_Refresh_btn_Click(this, null);
            }
            if (e.Alt & e.KeyCode == Keys.F4)
            {
                System.Environment.Exit(0);
            }
        }
Exemple #3
0
        private void menu_Select_btn_Click(object sender, EventArgs e)
        {
            FindBox frm2 = new FindBox();

            frm2.ShowDialog();
        }