I'm trying to grab a character entered by the user and then converting it to ASCII number.
The output should look like this:
A is 65
B is 66
C is 67
But I need help putting it together. My code is wrong:
The output should look like this:
A is 65
B is 66
C is 67
But I need help putting it together. My code is wrong:
C#:
private void buttonRun_Click(object sender, EventArgs e)
{
char ch = 0;
int chValue = 0;
string myString;
ch = textBoxEntry.Text;
myString = Convert.ToInt32(myString);
}