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

Popular posts from this blog

Hatching array of circles in AutoCAD using c# -

ios - UITEXTFIELD InputView Uipicker not working in swift -

Python Pig Latin Translator -