Solved

Reset List view small icon to nothing

Posted on 2004-10-07
6
298 Views
Last Modified: 2010-05-02
Hello,
I;ve got a list view showing data. It can be that there is no data in the table, then im showing an icon with when this is the case, but when there is data in the tables, i dont want to show the icon and want to get rid of the 'smallicon' cause it leaves a empty gap.

How can i reset the smallicon to no imagelist ??

Ive tried set listview.smallicon = nothing, but still leaves the gap

any ideaS?

thanks
0
Comment
Question by:arcross
  • 4
  • 2
6 Comments
 
LVL 19

Expert Comment

by:Shauli
ID: 12249821
The small icon works together with the view option. It will always leave a gap for the icon, even if you don't have any icon added to a specific row. The only time it will close this gap, is when you don't have an imagelist associated with the listview at all.

S
0
 
LVL 8

Author Comment

by:arcross
ID: 12249939
Hi shauli it that what i meant, is it possible associate and disassociate the image list from the listview?
0
 
LVL 19

Expert Comment

by:Shauli
ID: 12249963
No. As it is associated with the view as well. If you disassociate, then all icons will be removed.

S
0
Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
LVL 19

Accepted Solution

by:
Shauli earned 125 total points
ID: 12249976
My suggestion to you is to have to different icons, very dissimilar, for your two options.

S
0
 
LVL 8

Author Comment

by:arcross
ID: 12250123
Thanks Shauli, Ill leave with the gap, as i dont need an icon for the second.

Thanks very much 4 your help!

Álvaro
0
 
LVL 19

Expert Comment

by:Shauli
ID: 12250144
You are welcome :)

S
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

821 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question