Adding icons to a listview on a userform

  • Thread starter Thread starter Richard
  • Start date Start date
R

Richard

Hi

Does anyone know why the icons for a listview (report
style) are not displayed, when the item is added?

There is no error. Just no icon displayed.

Thanks in advance
 
in the form:
check that you have an imagelist object
check that the imagelist contains 16x16 icons or bitmaps
check the KEYs for the images.

in the form's initialize procedure bind the imagelist
to the listview

Set lvwNames.SmallIcons = Me.imlForm


when adding items to the listview indicate which SmallIcon to use..

Set li = lvwNames.ListItems.Add( _
Key:="UniqueItemKey", _
Text:="Description", _
SmallIcon:="IconKey")


HTH :)




--
keepITcool
| www.XLsupport.com | keepITcool chello nl | amsterdam


Richard wrote :
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top