private void btn_buscar_Click(object sender, EventArgs e) { if (txb_nome.Text == null || txb_nome.Text == "") { Console.Beep(); MessageBox.Show("Nenhum nome digitado!"); } else { string text = txb_nome.Text; string subs1 = text.Substring(0, 1).ToUpper(); string subs2 = text.Substring(1, 4).ToLower(); string subs = subs1 + subs2; Busca Busca = new Busca(matricula_instrutor, txb_nome.Text, subs); Busca.Show(); Hide(); } }