Hi,

I am new to C# application development.

I want to know,how to receive a character from a textbox?

Right now I am getting a textbox output in a string buffer Instead of this I want it into a Char array

Regards
Santosh K.

Assuming your TextBox is named textBox1, you do this:

char[] myCharArray = textBox1.Text.ToCharArray();

You can also treat a string as a character array without converting:

foreach (char c in myString) {
   ... etc ...
}

// or
for (int i = 0; i < myString.Length; i++) {
    char c = myString[i];
}