|
-
August 4th, 2001, 10:02 AM
#1
Need a new ListBox
I need to add one particular quality to the ListBox to fit my needs. Each item added needs to have not just text but a variable along with it. This variable will be there to signify a catagory of the item. The catagory can't be shown, but is there so that if a user selects the item, the code will know what catagory to work with. The list of catagories will be a predetermined ammount, so I guess that the variable can refer to an Enumeration. I would like the line of code I write for the AddIem to look like this:
list1.AddItem ("This is the text.", Catagory1)
I assume that I need to use the ListBox in making a new ocx. How do I add this new bit of depth to the ListBox? Thanks for any help that anyone can give me.
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
|