ListBox Control [CONTINUED]
What i am trying to do is use a ListBox in a control and be able to use most of the options the ListBox has from the control. For example i figured out how change the BackColor using somthing like this.
VB Code:
' GET BACKGROUND COLOR
Public Property Get BackColor() As String
BackColor = List1.BackColor
End Property
Public Property Let BackColor(ByVal NewBackColor As String)
List1.BackColor = NewBackColor
End Property
My Listbox in the Control is named List1 as you can see from the above code.
What i can't figure out is how to use Let and Get for the " List Feature in the Listbox "
Eg..
VB Code:
idx = List1.ListIndex
writeINI List1.List(idx), "Index", "ListIdx", App.Path & "\settings.ini"
Can Anyone Help me out In how to get the rest of the features of this listbox to work with my control?
I will be searchign on google until i hear a responce or find an answer..
Thanks in advance for anyone who can help.
Re: ListBox Control [RESOLVED] THANKS brucevde !!!
Excuse me, Bruce... How would that be for a ComboBox named "ComboBox"? Or where can I find that wizard? :wave:
Re: ListBox Control [RESOLVED] THANKS brucevde !!!
It is in Enterprise Edition. Sorry if I didn't mention that.
Re: ListBox Control [RESOLVED] THANKS brucevde !!!
Thank you, David. I found it.
Re: ListBox Control [RESOLVED] THANKS brucevde !!!
Quote:
Originally Posted by dglienna
It is in Enterprise Edition. Sorry if I didn't mention that.
I can't seem to find this wizard .. " ActiveX Control Interface Wizard? "
Can you explain to me where to find it please.
VB Code:
For i = 1 To ListView1.Listitems.ListCount
If ListView1.ListItems(i).Selected = True Then
ListBox1.AddItem ListView1.selectedItem.ListSubItems(1) & " - " & ListView1.ListItems(i)
ListBox2.AddItem ListView1.selectedItem.ListSubItems(4)
End If
Next
I am trying to figure out how to get this option from a listview to work in my control. Taking all the selected items from the listview in my control and taking that info and entering it into ListBox's. I think its similar to the one i was looking for to use in the ListBox, but i am not having any luck.
Any thoughts?
1 Attachment(s)
Re: ListBox Control [CONTINUED]
This one? I thought I posted it before. Just click on Add-Ins, and then Add-In Manager to get this screen.
Re: ListBox Control [CONTINUED]
Thanks David.
The wizard doesnt sho what i am tryig to do. SO there has to be a different way to do this. I managed to get the Listview listitems and subitems to show as single items. There has to be a way to make an array to get the rest of the selected items in the listview list.
Still trying .....................
Re: ListBox Control [CONTINUED]
Someone on this board must know what i am looking for........
Re: ListBox Control [CONTINUED]