private void Txt_Input_KeyDown(object sender, KeyEventArgs e) { Txt_Msg.AppendText("\t" + "Codigo da tecla: " + ((int)e.KeyCode) + "\r\n"); Txt_Msg.AppendText("\r\n" + "Pressionei uma tecla: " + e.KeyCode + "\r\n"); Txt_Msg.AppendText("\t" + "Nome da tecla: " + e.KeyData + "\r\n"); Lbl_Lower.Text = e.KeyCode.ToString().ToLower(); Lbl_Upper.Text = e.KeyCode.ToString().ToUpper(); }
private void Txt_Input_KeyDown(object sender, KeyEventArgs e) { Txt_Msg.AppendText("\r\n" + "Pressionei a tecla " + e.KeyCode + "\r\n"); Txt_Msg.AppendText("\t" + "Código da tecla " + ((int)e.KeyCode) + "\r\n"); Txt_Msg.AppendText("\t" + "Nome tecla " + e.KeyData + "\r\n"); Txt_Minusculo.Text = e.KeyCode.ToString().ToLower(); Txt_Maiusculo.Text = e.KeyCode.ToString().ToUpper(); }
private void Txt_Input_KeyDown(object sender, KeyEventArgs e) { Txt_Msg.AppendText("\r\n Key pressed: " + e.KeyCode + "\r\n"); Txt_Msg.AppendText("\t Key Code: " + ((int)e.KeyCode) + "\r\n"); Txt_Msg.AppendText("\t Key Data: " + e.KeyData + "\r\n"); Lbl_Lower.Text = e.KeyCode.ToString().ToLower(); Lbl_Upper.Text = e.KeyCode.ToString().ToUpper(); }