Solved

VB.net TreeView change images not resizing as expected

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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

Suggested Solutions

A while ago, I was working on a Windows Forms application and I needed a special label control with reflection (glass) effect to show some titles in a stylish way. I've always enjoyed working with graphics, but it's never too clever to re-invent …
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 …
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

735 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