Solved

VB.net TreeView change images not resizing as expected

Posted on 2012-03-13
2
371 Views
Last Modified: 2012-03-16
Hi

I am using the following code to resize the images in my TreeView
but as you can see in the image the hight seems to not change
possiblr because it is governed ny the row height.

How do I resolve this?

Thanks


        Dim myImageList As New ImageList()
        myImageList.Images.Add(Image.FromFile("C:\P1.png"))
        myImageList.Images.Add(Image.FromFile("C:\P2.png"))
        myImageList.Images.Add(Image.FromFile("C:\P3.png"))
        myImageList.ImageSize = New Size(100, 100)

e
0
Comment
Question by:murbro
2 Comments
 
LVL 83

Accepted Solution

by:
CodeCruiser earned 500 total points
ID: 37717668
>myImageList.ImageSize = New Size(100, 100)

Images seem to be within that size to me. Have you tried

myImageList.ImageSize = New Size(32, 32)
0
 

Author Closing Comment

by:murbro
ID: 37728719
Thanks very much
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Introduction When many people think of the WebBrowser (http://msdn.microsoft.com/en-us/library/2te2y1x6%28v=VS.85%29.aspx) control, they immediately think of a control which allows the viewing and navigation of web pages. While this is true, it's a…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

757 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now