Results 1 to 13 of 13

Thread: [2008] ComboBox with CheckBoxes. HOW?

  1. #1

    Thread Starter
    Addicted Member Alexandru_mbm's Avatar
    Join Date
    Jul 2007
    Location
    VBForums.com
    Posts
    157

    Thumbs up [2008] ComboBox with CheckBoxes. HOW?

    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!
    I'm still learning VB.NET
    Sorry for my bad english
    Thanks for your help

  2. #2
    Frenzied Member CoachBarker's Avatar
    Join Date
    Aug 2007
    Location
    Central NY State
    Posts
    1,121

    Re: [2008] ComboBox with CheckBoxes. HOW?

    Do you mean a checked list box??
    Thanks
    CoachBarker

    Code Bank Contribution
    Login/Manage Users/Navigate Records
    VB.Net | C#

    Helpful Links: VB.net Tutorial | C Sharp Tutorial | SQL Basics

  3. #3

    Thread Starter
    Addicted Member Alexandru_mbm's Avatar
    Join Date
    Jul 2007
    Location
    VBForums.com
    Posts
    157

    Re: [2008] ComboBox with CheckBoxes. HOW?

    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!
    I'm still learning VB.NET
    Sorry for my bad english
    Thanks for your help

  4. #4
    Frenzied Member CoachBarker's Avatar
    Join Date
    Aug 2007
    Location
    Central NY State
    Posts
    1,121

    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?
    Thanks
    CoachBarker

    Code Bank Contribution
    Login/Manage Users/Navigate Records
    VB.Net | C#

    Helpful Links: VB.net Tutorial | C Sharp Tutorial | SQL Basics

  5. #5

    Thread Starter
    Addicted Member Alexandru_mbm's Avatar
    Join Date
    Jul 2007
    Location
    VBForums.com
    Posts
    157

    Re: [2008] ComboBox with CheckBoxes. HOW?

    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!
    I'm still learning VB.NET
    Sorry for my bad english
    Thanks for your help

  6. #6
    Frenzied Member CoachBarker's Avatar
    Join Date
    Aug 2007
    Location
    Central NY State
    Posts
    1,121

    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()
    Thanks
    CoachBarker

    Code Bank Contribution
    Login/Manage Users/Navigate Records
    VB.Net | C#

    Helpful Links: VB.net Tutorial | C Sharp Tutorial | SQL Basics

  7. #7
    PowerPoster BruceG's Avatar
    Join Date
    May 2000
    Location
    New Jersey (USA)
    Posts
    2,657

    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.

  8. #8
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    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.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  9. #9
    New Member
    Join Date
    Sep 2008
    Posts
    7

    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

  10. #10
    Addicted Member
    Join Date
    May 2008
    Location
    Denmark
    Posts
    178

    Re: [2008] ComboBox with CheckBoxes. HOW?

    Quote 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

  11. #11
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687

    Re: [2008] ComboBox with CheckBoxes. HOW?

    Quote 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
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  12. #12
    New Member
    Join Date
    Sep 2008
    Posts
    7

    Re: [2008] ComboBox with CheckBoxes. HOW?

    Sorry, did not realize I was there. I did start my own thread now

  13. #13

    Thread Starter
    Addicted Member Alexandru_mbm's Avatar
    Join Date
    Jul 2007
    Location
    VBForums.com
    Posts
    157

    Re: [2008] ComboBox with CheckBoxes. HOW?

    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
    I'm still learning VB.NET
    Sorry for my bad english
    Thanks for your help

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width