TreeView Image Size

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • gyanendar
    New Member
    • Jun 2007
    • 90

    TreeView Image Size

    Hi All,
    I am working on WinForm.
    I m using treeview with some image for each node.
    I have used ImageIndex to assign the Image for a node.When I am running the application,the Image is coming properly but its size getting reduced.
    TreeView.ItemHe ight is setting the item height ,not enlarging the Image size.
    Can any one help me in controlling the size of Image.

    Regards,
    Gyanendar
  • ThatThatGuy
    Recognized Expert Contributor
    • Jul 2009
    • 453

    #2
    Originally posted by gyanendar
    Hi All,
    I am working on WinForm.
    I m using treeview with some image for each node.
    I have used ImageIndex to assign the Image for a node.When I am running the application,the Image is coming properly but its size getting reduced.
    TreeView.ItemHe ight is setting the item height ,not enlarging the Image size.
    Can any one help me in controlling the size of Image.

    Regards,
    Gyanendar
    Set your image list's ImageSize property to a bigger size...

    eg. 32,32 or 48,48.... so your icon will look bigger now .... also you can use the ColorDepth property to improve the icon quality

    Comment

    • Monomachus
      Recognized Expert New Member
      • Apr 2008
      • 127

      #3
      Hi, this wasn't too obvious, but the ImageSize isn't set from the treeview
      Please consult this link.
      Code4Food #4: How to change WinForms Treeview control image size?

      Comment

      • ThatThatGuy
        Recognized Expert Contributor
        • Jul 2009
        • 453

        #4
        Originally posted by Monomachus
        Hi, this wasn't too obvious, but the ImageSize isn't set from the treeview
        Please consult this link.
        Code4Food #4: How to change WinForms Treeview control image size?
        I never said you could change the image size from the treeview control....

        i said change it from the the Image List control

        Comment

        • Monomachus
          Recognized Expert New Member
          • Apr 2008
          • 127

          #5
          Originally posted by ThatThatGuy
          I never said you could change the image size from the treeview control....

          i said change it from the the Image List control
          Actually the message was for gyanendar. It wasn't for you.

          Comment

          • ThatThatGuy
            Recognized Expert Contributor
            • Jul 2009
            • 453

            #6
            Originally posted by Monomachus
            Actually the message was for gyanendar. It wasn't for you.
            oh i get it !!! Sorry

            Comment

            Working...