How to do a C++ CLR/.net ComboBox with 16,000 selections

Greg Wilson-Lindberg 126 Reputation points
2022-11-15T22:21:35.473+00:00

I'm trying to do use a ComboBox to select a number that can be as high as 16000. I tried to enter 16000 lines for the Range, but it got truncated at something like 5647 entries. Is there a way to have something that works like a ComboBox that would allow me to have a range up to 16000. It doesn't have to be a ComboBox, I just need something that will allow me to select/display a number between 0 and 16000.

Thanks,
Greg

C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,760 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Michael Taylor 54,816 Reputation points
    2022-11-15T22:45:57.723+00:00

    That doesn't make sense to me. Why would you show a drop down with 16K items in it? Nobody would scroll down that list anyway. At best they would type in the number they want.

    My personal recommendation is to use a numeric up down control as defined here. That matches the expectation of most users in that they can enter a number or use the up/down arrows to quickly move up/down the numeric range.

    0 comments No comments

  2. Greg Wilson-Lindberg 126 Reputation points
    2022-11-16T00:38:20.9+00:00

    Ok, U p/Down is what I wanted. I'm new to working in a Windows environment. What I wanted is a NumericUpDown. I was looking through everything and didn't know the name for what I wanted. @Michael Taylor you gave me the information that I needed to find it.

    Thanks.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.