Do you want the items in the list to also be uppercase? If so, a simple
override will do the trick:
class UppercaseComboB ox : ComboBox
{
private const int CBS_UPPERCASE = 0x2000;
protected override CreateParams CreateParams
{
get
{
CreateParams p = base.CreatePara ms;
p.Style |= CBS_UPPERCASE;
return p;
}
}
}
/claes
"Lakshmi" <la************ ***@ayrdata.com .auwrote in message
news:%2******** ********@TK2MSF TNGP06.phx.gbl. ..
Hi,
How can I make the combo box text uppercase? For instance when the user
types in letters in the combobox, I want them to appear as upper case.
Thanks.
Lakshmi