Two or three icon in subitem
Two or three icon in subitem
Two or three icon in subitem
Two or three icon in subitem
Two or three icon in subitem
Two or three icon in subitem Two or three icon in subitem Two or three icon in subitem Two or three icon in subitem Two or three icon in subitem Two or three icon in subitem Two or three icon in subitem Two or three icon in subitem
Two or three icon in subitem Two or three icon in subitem
Two or three icon in subitem
Go Back  Xtreme Visual Basic Talk > > > Two or three icon in subitem


Reply
 
Thread Tools Display Modes
  #1  
Old 05-06-2017, 02:44 PM
sal21 sal21 is offline
Junior Contributor
 
Join Date: Mar 2004
Posts: 260
Default Two or three icon in subitem


Possible to insert in subitems, instead a single icon two or more?

in my case i use for one icon from iamgelist1:

Me.ListView2.ListItems(I).SmallIcon = 1

i need, similar:

Me.ListView2.ListItems(I).SmallIcon = 1,3,2
Reply With Quote
  #2  
Old 05-08-2017, 04:22 AM
Flyguy's Avatar
FlyguyTwo or three icon in subitem Flyguy is offline
Lost Soul

Super Moderator
* Guru *
 
Join Date: May 2001
Location: Vorlon
Posts: 19,164
Default

Do you want to show multiple icons in a single cell?
That's, with my limited knowledge, not possible.
Reply With Quote
  #3  
Old 08-17-2017, 06:55 AM
fafalone fafalone is offline
Freshman
 
Join Date: May 2010
Posts: 37
Default

You would have to completely custom draw the item. You can get up to 2 icons for the main item by changing the checkbox picture to a normal icon (it's not limited to 2; you can have any number of icons in the check imagelist); but not for the subitem.

A much easier solution, however, would be to just have 2 additional, very small, columns- with no text just an image. The end result would be visually identical.
Reply With Quote
  #4  
Old 09-14-2017, 04:16 AM
gibra's Avatar
gibra gibra is offline
Junior Contributor
 
Join Date: Apr 2008
Location: Italy
Posts: 386
Default

Reply With Quote
  #5  
Old 09-18-2017, 10:10 PM
dilettante's Avatar
dilettanteTwo or three icon in subitem dilettante is offline
Underclocked lifestyle

Forum Leader
* Guru *
 
Join Date: Feb 2005
Location: Michigan, USA
Posts: 4,524
Default

For some reason people want to use a ListView when the MSHFlexGrid would be a better alternative. Any cell can have a picture as well as text.

Something to at least consider.
Reply With Quote
  #6  
Old 09-19-2017, 06:38 AM
fafalone fafalone is offline
Freshman
 
Join Date: May 2010
Posts: 37
Default

ListView is love, ListView is life.

Between the standard Windows control appearance and the many many features, it's almost always better to try to work with the ListView.

(Any cell can have a picture as well as text?? So can any subitem. OP wants 2 or 3 pictures, neither control does that.)
Reply With Quote
Reply

Tags
iamgelist1, icon, insert, similar, subitem


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
Two or three icon in subitem
Two or three icon in subitem
Two or three icon in subitem Two or three icon in subitem
Two or three icon in subitem
Two or three icon in subitem
Two or three icon in subitem Two or three icon in subitem Two or three icon in subitem Two or three icon in subitem Two or three icon in subitem Two or three icon in subitem Two or three icon in subitem
Two or three icon in subitem
Two or three icon in subitem
 
Two or three icon in subitem
Two or three icon in subitem
 
-->