c# - Make all TextBoxes UPPERCASE -
is there way can make textboxes
in form
uppercase. have been doing
txtpersonname.charactercasing = charactercasing.upper; ....;
you can textbox controls in controls collection of form
, set charactercasing property charactercasing.upper
foreach(var tb in this.controls.oftype<textbox>()) { tb.charactercasing = charactercasing.upper; }
Comments
Post a Comment