Results 1 to 6 of 6

Thread: Combo box question

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Nov 2006
    Posts
    736

    Combo box question

    Hi guys looks like i am trying to do some thing vb wont aloow me to do again can you confirm or tell fo work around for this.

    i am after a dropdown checkbox so i can select items from the checkbox list.
    is this possible?

    thanks in advance

  2. #2
    Frenzied Member zynder's Avatar
    Join Date
    Nov 2006
    Location
    localhost
    Posts
    1,434

    Re: Combo box question

    You want a multiselect combobox? Well, that is possible using API but one thing I can say its a bad idea. Since comboboxes are not designed for that. You can use listview instead.

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Nov 2006
    Posts
    736

    Re: Combo box question

    Basically i want a list like a combo box that when dropped it has selections in it with check boxs next to it so i can select or unselect options in the list. not bothered what it is but how it looks and works. how do i get list view?

  4. #4
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Combo box question

    Then you will need to find a third party control. VB combo boxs do not support checkboxs.

    VB Listboxs, however, do support checkbox so that could be an alternative.

  5. #5

    Thread Starter
    Fanatic Member
    Join Date
    Nov 2006
    Posts
    736

    Re: Combo box question

    Hi guys

    sorted it i think i am useing a listbox as suggested but mimiced a combo box with a resized command button and the following code

    Code:
    Private Sub Command2_Click()
    If List1.Height = "285" Then
    List1.Height = "2985"
    Else
    If List1.Height = "2985" Then
    List1.Height = "285"
    End If
    End If
    End Sub
    have not checked the funtionality of the listbox yet but it looks remarkably like a combox box when clicked

  6. #6
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Combo box question

    If it works for you then life is good.

    The size of the listbox display should have no bearing no the code you write to manipulate its contents.

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