I have a TextBox(Multiline) problem in C#.
For example, if i type "apple" (in lower case), Expected ouput is "APPLE". But the outcome is, "ELPPA".
The Cursor is not working as per our expectation.
Cursor moves to left-sided end when we type.
Purpose of the code: "To convert the (input) text typed in to Upper Case by using a method. And strictly without using the CharacterCasing property of TextBox to convert case".
Pls try to give me a good solution, iff u hav any solution.
I'm facing problem with the code below.
Pls solve it ASAP
Thanx in Advance.
Code:
public String ToCaps(String str)
{
return str.ToUpper();
}
private void textBox1_TextChanged(object sender, EventArgs e)
{
try
{
textBox1.Text = ToCaps( textBox1.Text);
}
catch (Exception ex)
{
Environment.Exit(1);
}
}
2006-08-30
20:47:10
·
4 answers
·
asked by
kalaiguna
2
in
Computers & Internet
➔ Programming & Design