Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Initialize ImageList control in VBA

Status
Not open for further replies.

kah0563

Programmer
Feb 7, 2005
6
US
I am trying to using an ImageList control with my ListView. In VB it seems you can add the ImageList control to the form and the name appears in the properties of the ListView. But in VBA that is not the case. You must first initialize the ImageList control?? Anybody know how I can get the ImageList control name to appear in the properties of the ListView (Icon Image List tab)??
 
It is not a VBA problem but rather UserForm feature (ListView can see ImageList when they are on an excel worksheet for instance). You can assign ImageList when initializing userform:

Private Sub UserForm_Initialize()
ListView1.SmallIcons = ImageList1
End Sub

combo
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top