ComboBox Upper Case

  • Thread starter Thread starter PL
  • Start date Start date
P

PL

I'm looking for a property of the ComboBox component who give the
possibility to put all the data capture in upper case...

Something similar to : Me.textbox.CharacterCasing

Have an idea?

Thanks!

PL
 
private void comboBox1_TextChanged(object sender, System.EventArgs e)
{

int Pos = comboBox1.SelectionStart;
comboBox1.Text = comboBox1.Text.ToUpper();
comboBox1.SelectionStart = Pos ;
}

While typing the characters are converted to upper case. However, if
comboBox1.Items contains lowercase items, those will remain as lowercase.
 
Back
Top