P
Poohface
I'm trying to create a list box control that replaces the itemData
property that we had in VB6. I created and inherited control from the
listbox class and was able to add a data property, now the problem is,
that property get applied to the listbox as a whole. So it would seem
I actually have to make an inherited control out of the ListControl
class so that each item in the listbox can have this property. This is
where I get a lil messed up. Am I correct in stating that I would have
to do the following:
1) Create a inherited control out of the ListControl class that
creates a propertie for the items to hold a ItemData property. (need
help on doing that)
2) Create a Inherited ListBox control that makes use of the above
mentioned control to override the default ListControl that in makes
use of. (how to do that?)
Please let me know if I'm on the right track. Please don't just point
me to some exsisting control that does this. I wish to learn how to do
this as it will come in handy for future modifications I need to make
to the control.
Thank you for any help. I've bought some books but this subject in not
covered well.
Norst
property that we had in VB6. I created and inherited control from the
listbox class and was able to add a data property, now the problem is,
that property get applied to the listbox as a whole. So it would seem
I actually have to make an inherited control out of the ListControl
class so that each item in the listbox can have this property. This is
where I get a lil messed up. Am I correct in stating that I would have
to do the following:
1) Create a inherited control out of the ListControl class that
creates a propertie for the items to hold a ItemData property. (need
help on doing that)
2) Create a Inherited ListBox control that makes use of the above
mentioned control to override the default ListControl that in makes
use of. (how to do that?)
Please let me know if I'm on the right track. Please don't just point
me to some exsisting control that does this. I wish to learn how to do
this as it will come in handy for future modifications I need to make
to the control.
Thank you for any help. I've bought some books but this subject in not
covered well.
Norst