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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top