How do I set a list box or combo box so that the data is limited to the list used to populate the control?

I have  aVB6 form with list boxes and combo boxes. I am only interested in data that is already populated into the controls. Any other data will crash the program. How do I ensure that the data is limited ot the list, much like in VBA where you set the LimitToList property to "Yes"
M_EpsteinAsked:
Who is Participating?
 
Mike TomlinsonMiddle School Assistant TeacherCommented:
Set the Style property to DropDownList.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.