Is there a way i can make all TextBoxes
in a Form
UPPERCASE.
What i have been doing is
txtPersonName.CharacterCasing = CharacterCasing.Upper;
....;
Is there a way i can make all TextBoxes
in a Form
UPPERCASE.
What i have been doing is
txtPersonName.CharacterCasing = CharacterCasing.Upper;
....;
You can get all TextBox controls in Controls collection of Form
and set the CharacterCasing property to CharacterCasing.Upper
foreach(var tb in this.Controls.OfType<TextBox>())
{
tb.CharacterCasing = CharacterCasing.Upper;
}