Exemplo n.º 1
0
        private void pictureBoxSearch_Click(object sender, EventArgs e)
        {
            FormSearchingResult fsr = new FormSearchingResult(this, metroTextBoxSearch.Text, 3, true);

            fsr.Show();
            this.Hide();
        }
Exemplo n.º 2
0
 private void metroTextBoxSearch_KeyPress(object sender, KeyPressEventArgs e)
 {
     if (System.Text.RegularExpressions.Regex.IsMatch(e.KeyChar.ToString(), @"\r"))
     {
         FormSearchingResult fsr = new FormSearchingResult(this, metroTextBoxSearch.Text, 3, true);
         fsr.Show();
         this.Hide();
     }
 }