Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Ensuring UPPER case entry
Message
 
To
05/10/2006 18:19:14
John Baird
Coatesville, Pennsylvania, United States
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
01158053
Message ID:
01159891
Views:
19
Yes you could use string.ToUpper() from the textbox leave event.
I gave Richard two other solutions in a different thread related to the same thing:
private void textBox1_TextChanged(object sender, EventArgs e)
{
  ((TextBox)sender).Text = ((TextBox)sender).Text.ToUpper();
  ((TextBox)sender).SelectionStart = ((TextBox)sender).Text.Length;
}
private void textBox1_KeyPress(object sender, KeyPressEventArgs e)
{
  if (char.IsLetter(e.KeyChar) && !char.IsUpper(e.KeyChar))
  {
    e.KeyChar = char.ToUpper(e.KeyChar);
  }
}
>What about String.ToUpper()?
>
>
>
>>I don't think CharacterCasing is available in the compact framework.
>>
>>>Hi Richard!
>>>
>>>Textboxes do have a property called CharacterCasing which can be set to 'Normal', 'Upper' and 'Lower'.
>>>
>>>HTH
>>>
>>>>I want to ensure that all my character inputs are shown as UPPER case on input. I am converting then to upper on RETURN.
>>>>
>>>>NEEDS TO BE DONE PROGRAMMATICALLY WITHOUT A METHOD AS ITS POCKET PC
>>>>
>>>>Regards
>>>>
>>>>Richard
Semper ubi sub ubi.
Previous
Reply
Map
View

Click here to load this message in the networking platform