Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

All caps combobox

Status
Not open for further replies.

cyprus106

Programmer
Apr 30, 2001
654
I have a combo box that the user can type in, but the characters the user types must be in all capital letters.
I tried:
ComboBox1->Text = ComboBox1->Text.UpperCase();
but that, of course, made the formatted string come out backwards. I would be INCREDIBLY apprciative if anyone could point me in the right direction here. Cyprus
 
I do believe that if you in the "OnKeyPress" does:
Key = toupper(Key);
(thats all)
This should do the woodoo...
I have done something quite similar (only hex input) and it worked like a charm. Hopefully it will work for you.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top