Solved

VB.net TreeView change images not resizing as expected

Posted on 2012-03-13
2
382 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying 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

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…
It’s quite interesting for me as I worked with Excel using vb.net for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

710 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