Q:

how to display the number of letters in alphabet in label while typing in the textbox

I'm trying to make a program that whenever you type a letter in the textbox the number of the letter in alphabet would appear in the label......
I've tried some codes like this: 
 private void textBox1_TextChanged(object sender, EventArgs e)
        {
            string userInput = textBox1.Text;
            char charCount;
            charCount = userInput[0];

            label1 = charCount.Length.ToString();
        }

But I can't find my solution for my problem.....
I'll appreciate the help I can get....

A:

Show letter position in alphabet.
private void textBox1_TextChanged(object sender, EventArgs e)
{
    string userInput = textBox1.Text;            //get string from textbox
    if(string.IsNullOrEmpty(userInput)) return;  //return if string is empty
    char c = char.ToUpper(userInput[userInput.Length - 1]); //get last char of string and normalize it to big letter
    int alPos = c-'A'+1;                         //subtract from char first alphabet letter

    label1 = alPos.ToString();                   //print/show letter position in alphabet
}

