سؤال

Is it possible to have my comboBox, numericUpDown, and ListBox connected together?

I want to make the numericUpDown to be the limit of the choices that you could made taht will be displayed in the listbox. For example:

  • If numericUpDown == 2 then,
  • comboBox == 5 choices. You Can Choose 2. Your first choice shouldn't be included in your second lookthrough of the combobox. then,
  • listbox == 2. (The listbox should only contain data. Depending on the value of the numericUpDown) So if the user choose again in the combobox the datas in the list box wouldn't be affected.

How might I implement this?

هل كانت مفيدة؟

المحلول

C# has most of the useful controls but sometimes what you need is not there. You can always make your own controls or just add a little coding to get what you want. Nothing Is Impossible. Here is a simple way to make your own Control and then use it in your program. http://www.codeproject.com/KB/miscctrl/first_control.aspx

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top