Hi,
At the textchanged event of my textbox, I have written code so that the character at first position get capitalised, but I am having one issue, as each time it returns from the textchanged event call, it focuses the textbox at the start.
Following is my code
int len = txtIdeaName.Text;
if (len == 1)
{
string str = txtIdeaName.Text.ToUpper();
txtIdeaName.Text = str;
}
if (len > 1)
{
string s1 = txtIdeaName.Text.Substring(0, 1).ToUpper();
string s2 = txtIdeaName.Text.Substring(1, len-1).ToLower();
string str = s1 + s2;
txtIdeaName.Text = str;
}
Is there any way to auto-capitalize the first character in a textbox?
Also, in my WP7 device setting, auto-capitalization is ON.
but it doesn't works in my application. Is it the case that the phone settings doesn't works in Users' applications?
How can I turn on the caps-lock or the up arrow on SIP as my textbox gets focus.
Is there any way to do this?
I got Key.Capslock property, but it is only readable not writeable
Thanks.