468,504 Members | 1,979 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,504 developers. It's quick & easy.

How to change icon size in listview runtime?

I write the code to change icon size in listview, but so as the Trackbar
value changed, the icons will disappear, but the text is eyeable.

'Trackbar1 max value is 6
'Trackbar1 min value is 2

Private Sub Trackbar1_ValueChanged(ByVal sender As Object, ByVal e As
System.EventArgs) Handles Trackbar1.ValueChanged
ImageList1.ImageSize = New Size(Trackbar1.Value * 8, Trackbar1.Value
* 8)
ListView1.LargeImageList = ImageList1
ListView1.Items(0).ImageIndex = 0
ListView1.Items(1).ImageIndex = 1
ListView1.Items(2).ImageIndex = 2
End Sub
Nov 20 '05 #1
0 3315

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Carl Scarlett | last post: by
8 posts views Thread by Dinesh Jain | last post: by
5 posts views Thread by IcingDeath via DotNetMonster.com | last post: by
4 posts views Thread by techspirit | last post: by
reply views Thread by lior_kovarsky | last post: by
reply views Thread by NPC403 | last post: by
3 posts views Thread by gieforce | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.