In a Events you have to double click on the KeyPress.
Once a keyPress method is loaded into the form1.cs ,you to write these code inside it.
private void textBox1_KeyPress_1(object sender, KeyPressEventArgs e)
{
MessageBox.Show(Convert.ToString(Convert.ToInt32(e.KeyChar)));
}
Run the program you get the ASCII value of any character.............
I Hope you like this simple but interesting code.......
Join the conversation! Your thoughts help the community grow.