Results 1 to 4 of 4

Thread: Make some of the items look different in a combo box

  1. #1

    Thread Starter
    Member
    Join Date
    Aug 2000
    Location
    Minneapolis
    Posts
    42
    Hi friends,
    I have a combo box called LstSalesReps.
    I have five items in it
    1)Allan
    2)Steve
    3)John
    4)Dave
    5)Tim

    The SalesReps Dave and Tim are not active now but i do NOT want to remove them from the combo box.
    I want to show the SalesReps Dave and Tim in different color or different font or anything of that sort which differentiates Dave and Tim from the rest of them in the combo box.
    Hope you understand my question.
    Please reply soon.
    Thanks,
    Srini

  2. #2
    PowerPoster Static's Avatar
    Join Date
    Oct 2000
    Location
    Rochester, NY
    Posts
    9,390

    Wink well could you...


    I have a combo box called LstSalesReps.
    I have five items in it
    1)Allan
    2)Steve
    3)John
    4)Dave
    5)Tim
    could you just add a seperator?

    1)Allen
    2)Steve
    3)John
    --Inactive--
    4)Dave
    5)Tim

    just a thought (I dont know if there is a way to do what your asking)
    JPnyc rocks!! (Just ask him!)
    If u have your answer please go to the thread tools and click "Mark Thread Resolved"

  3. #3
    PowerPoster Chris's Avatar
    Join Date
    Jan 1999
    Location
    K-PAX
    Posts
    3,238

    Thumbs up ImageCombo Control

    For this, you can use the ImageCombo control. In this control, you can use imgae to differentiate the user. Which you can obtain it from the Microsoft WindowsCommon Control 6.0 (SP3) or (SP4). But you need to all all the image into a ImageList and set the ImageCombo.ImageList properties to ImageList control which have all the image store inside.

    Code:
    Private Sub Command1_Click()
        ImageCombo1.ComboItems.Add , "K1", "Allan", "Img3", "Img3"
        ImageCombo1.ComboItems.Add , "K2", "Steve", "Img2", "Img2"
        ImageCombo1.ComboItems.Add , "K3", "John", "Img3", "Img3"
        ImageCombo1.ComboItems.Add , "K4", "Dave", "Img1", "Img1"
        ImageCombo1.ComboItems.Add , "K5", "Tim", "Img1", "Img1"
    End Sub

  4. #4

    Thread Starter
    Member
    Join Date
    Aug 2000
    Location
    Minneapolis
    Posts
    42
    Thanks
    That helps

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