private void Form3_KeyPress(object sender, KeyPressEventArgs e){if (e.KeyChar>=(char)48 && e.KeyChar<=(char)58){MessageBox.Show("数字:" + e.KeyChar); }else{MessageBox.Show("字符:" + e.KeyChar);}}