Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 24
Default Adding icons to a listview on a userform

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
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,253
Default Adding icons to a listview on a userform



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 :

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

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding controls to userform ExcelMonkey[_190_] Excel Programming 3 February 25th 05 11:30 AM
Adding custom faces-icons to toobar buttons. MarkHG Excel Programming 7 February 9th 05 11:14 AM
Adding TextBox to UserForm via code krzychu58 Excel Programming 1 September 24th 04 03:24 PM
How to add icons in the Listview control kvenku[_13_] Excel Programming 3 June 3rd 04 01:07 PM
Adding browse button to userform Brad[_11_] Excel Programming 1 December 1st 03 04:04 PM


All times are GMT +1. The time now is 10:27 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"