|
-
Sep 14th, 2008, 04:37 PM
#1
Thread Starter
Addicted Member
-
Sep 14th, 2008, 05:28 PM
#2
Frenzied Member
Re: [2008] ComboBox with CheckBoxes. HOW?
Do you mean a checked list box??
-
Sep 14th, 2008, 05:38 PM
#3
Thread Starter
Addicted Member
-
Sep 14th, 2008, 06:18 PM
#4
Frenzied Member
Re: [2008] ComboBox with CheckBoxes. HOW?
What kind of data are you loading into the Checked List box and where are you getting the data from?
-
Sep 14th, 2008, 06:21 PM
#5
Thread Starter
Addicted Member
-
Sep 14th, 2008, 07:54 PM
#6
Frenzied Member
Re: [2008] ComboBox with CheckBoxes. HOW?
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()
-
Sep 14th, 2008, 08:07 PM
#7
Re: [2008] ComboBox with CheckBoxes. HOW?
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.
"It's cold gin time again ..."
Check out my website here.
-
Sep 14th, 2008, 08:21 PM
#8
Re: [2008] ComboBox with CheckBoxes. HOW?
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.
-
Sep 15th, 2008, 10:43 AM
#9
New Member
Re: [2008] ComboBox with CheckBoxes. HOW?
I am new to VB 2008, how do I create a form that executes another form but only shows for 5 seconds?
Booface98
-
Sep 15th, 2008, 12:14 PM
#10
Addicted Member
Re: [2008] ComboBox with CheckBoxes. HOW?
 Originally Posted by booface98
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.
EDIT: Post no. 100
-
Sep 15th, 2008, 12:43 PM
#11
Re: [2008] ComboBox with CheckBoxes. HOW?
 Originally Posted by booface98
I am new to VB 2008, how do I create a form that executes another form but only shows for 5 seconds?
Booface98
Please don't hijack other people's threads with unrelated questions.
-tg
-
Sep 15th, 2008, 01:10 PM
#12
New Member
Re: [2008] ComboBox with CheckBoxes. HOW?
Sorry, did not realize I was there. I did start my own thread now
-
Sep 15th, 2008, 04:01 PM
#13
Thread Starter
Addicted Member
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|