471,092 Members | 1,003 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,092 software developers and data experts.

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 3367

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

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.