Solved

VB.net TreeView change images not resizing as expected

Posted on 2012-03-13
2
375 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

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

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

If you're writing a .NET application to connect to an Access .mdb database and use pre-existing queries that require parameters, you've come to the right place! Let's say the pre-existing query(qryCust) in Access takes a Date as a parameter and l…
Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

777 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