Results 1 to 6 of 6

Thread: List properties

  1. #1

    Thread Starter
    New Member
    Join Date
    Jun 2007
    Posts
    3

    List properties

    I'm trying to wrap up a ComboBox into another control with some extra functionality.
    The vb comboBox has a list property which you drop down and enter data during design time into the the list. I want to add that property to my wrapped control properties of but I cant work out how to make it a list drop down. Does anyone know how to do this?

  2. #2
    Lively Member
    Join Date
    Mar 2007
    Posts
    98

    Re: List properties

    In the properties menu you can change the style

  3. #3
    Former Admin/Moderator MartinLiss's Avatar
    Join Date
    Sep 1999
    Location
    San Jose, CA
    Posts
    33,431

    Re: List properties

    Quote Originally Posted by Warrick Skull
    I'm trying to wrap up a ComboBox into another control with some extra functionality.
    The vb comboBox has a list property which you drop down and enter data during design time into the the list. I want to add that property to my wrapped control properties of but I cant work out how to make it a list drop down. Does anyone know how to do this?

    Take a look at the code you can get to via the NumberBox ActiveX control link in my signature. It's a textbox with extra properties.

  4. #4
    Lively Member
    Join Date
    Mar 2007
    Posts
    98

    Re: List properties

    Oops, sorry my mistake, i read the question incorrectly >.<

  5. #5

    Thread Starter
    New Member
    Join Date
    Jun 2007
    Posts
    3

    Re: List properties

    Unfortunately the NumberBox isn't particularly helpful. The list property is filling an array not a single data variable. I need the drop down to see and edit each string of the array.

  6. #6

    Thread Starter
    New Member
    Join Date
    Jun 2007
    Posts
    3

    Re: List properties

    /bump

    I need the 'list' property of the ComboBox the behave exactly the same in the properties of my wrapped ComboBox.

    I think I have the Properties part right but I can't get the properties bag part to show the list property at all.

    1 Code:
    1. Public Property Get List(ByVal Index As Integer) As String
    2.     List = com.List(Index)
    3. End Property
    4. Public Property Let List(ByVal Index As Integer, ByVal new_List As String)
    5.     com.List(Index) = new_List
    6. End Property

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