| | |
ComboBox woes
Please support our C# advertiser: Intel Parallel Studio Home
Thread Solved |
I have 2 issues:rolleyes: :
1. I'm creating a combobox from inside code (sort of dynamic, when the user finishes a row, another row appears) and I would like to know how to set the list of items the user chooses from.
2. How can I block the user from typing custom values into a combobox, but still accept when they select an item from the list?
Thanks
1. I'm creating a combobox from inside code (sort of dynamic, when the user finishes a row, another row appears) and I would like to know how to set the list of items the user chooses from.
2. How can I block the user from typing custom values into a combobox, but still accept when they select an item from the list?
Thanks
•
•
•
•
I have 2 issues:rolleyes: :
1. I'm creating a combobox from inside code (sort of dynamic, when the user finishes a row, another row appears) and I would like to know how to set the list of items the user chooses from.
are you stating that if they do something in A then a new combo box is created dynamically on the form at point B and you need to know how to modify it?
but the easiest way to add data to a combo box is by setting the range of items to choose from
C# Syntax (Toggle Plain Text)
_MyComboBox.Items.AddRange( new string[] { "ITEM 1", "ITEM 2", "ITEM 3", "ITEM 4", .... "ITEM 10" } );
•
•
•
•
2. How can I block the user from typing custom values into a combobox, but still accept when they select an item from the list?
Thanks
Dont forget to spread the reputation to those that deserve!
![]() |
Similar Threads
- Filling a ComboBox.... (Java)
- Combobox Woes (JSP)
Other Threads in the C# Forum
- Previous Thread: DTS Package
- Next Thread: ASP.NET GridView order of operation
| Thread Tools | Search this Thread |
.net access ado.net algorithm array backup barchart bitmap box broadcast buttons c# check checkbox client combobox control conversion csharp custom database databasesearch datagrid datagridview datagridviewcheckbox dataset datetime degrees development draganddrop drawing dynamiccreation encryption enum equation event excel file form format formatting forms function gdi+ httpwebrequest image index input install interface java label list listbox mandelbrot math mouse mouseclick mysql namevaluepairs operator path photoshop picturebox pixelinversion post powerpacks programming property radians regex remote remoting resource restore richtextbox server sleep socket sql statistics stream string table text textbox thread time timer update usercontrol validation visualstudio wait webbrowser windows winforms working wpf xml






