Anyone hve used a ComboBox with CheckBoxes ? I need one of this and if you have used please tell me how i did it!
Thanks in advice!
Printable View
Anyone hve used a ComboBox with CheckBoxes ? I need one of this and if you have used please tell me how i did it!
Thanks in advice!
Do you mean a checked list box??
Yes Couch... i have searched google with that combination too and remains in my head for all the time... yes checked listbox into a combobox!
What kind of data are you loading into the Checked List box and where are you getting the data from?
items.add("item 1")
items.add("item 2")
items.add("item 3")
not from a db not from a list... just in the form load event i want to add 3 items!
Hardcoded in then would be like thei:
Code:Me.CheckedListBox1.Items.Clear()
Me.CheckedListBox1.BeginUpdate()
Me.CheckedListBox1.Items.Add("One")
Me.CheckedListBox1.Items.Add("Two")
Me.CheckedListBox1.Items.Add("Three")
Me.CheckedListBox1.Items.Add("Four")
Me.CheckedListBox1.Items.Add("Five")
Me.CheckedListBox1.EndUpdate()
A checked combobox does not exist "out of the box", you would have to make one - either make a custom control, or you can "fake it" by using a combination of controls - for example: a label, a button, and a panel containing a checked listbox and "close" button. Basically, the button would have just an image on it that looks like the drop-down arrow. This button would be to the right of the label. The panel would be hidden. When the button is clicked, show the panel with the checked listbox below the label, where the user can make selections. When the user clicks the "close" button on the panel, loop through the checked items to create a comma-delimited string of the selections and show that in the label, then hide the panel.
I assume that you want a ComboBox from which the user can make multiple selections. If you search the Web for multi select combobox .net you'll find some examples. I'm not sure that any of them will actually use check boxes though.
I am new to VB 2008, how do I create a form that executes another form but only shows for 5 seconds?
Booface98
You can use the .Show() command and a timer on the form, but please open your own topic by clicking the "New Thread" button.Quote:
Originally Posted by booface98
EDIT: Post no. 100 :D
Quote:
Originally Posted by booface98
Please don't hijack other people's threads with unrelated questions.
-tg
Sorry, did not realize I was there. I did start my own thread now
i mean something like this sample from CodeProject
http://www.codeproject.com/KB/combob..._combobox.aspx
BUT in VB.NET
I'll try to convert this sample and if i can't i will YELL