|
-
Dec 15th, 2000, 10:33 AM
#1
Thread Starter
Member
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
-
Dec 15th, 2000, 10:56 AM
#2
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"
-
Dec 15th, 2000, 11:23 AM
#3
PowerPoster
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
-
Dec 15th, 2000, 11:38 AM
#4
Thread Starter
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
|