how can i make my combobox to show it's max index at all times?
emilio 10 Junior Poster
Recommended Answers
Jump to PostIf you are talking about the dropdown height, there is a property for that setting.
Jump to PostI have no idea why anyone would ever want to do this, but here you go...
private void comboBox1_SelectedIndexChanged(object sender, EventArgs e) { comboBox1.SelectedIndexChanged -= comboBox1_SelectedIndexChanged; int i = Convert.ToInt32(comboBox1.SelectedItem.ToString()); int j = Convert.ToInt32(comboBox1.Items[comboBox1.Items.Count - 1]) -i; comboBox1.Items.Clear(); for (int z = 1; z <= j ; …
All 6 Replies
Jens 3 Light Poster
JerryShaw 46 Posting Pro in Training
emilio 10 Junior Poster
JerryShaw 46 Posting Pro in Training
Jens 3 Light Poster
emilio 10 Junior Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.