Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
95
LeftImages space
posted

Hi ,

I 'm adding images in the left side of an ultrtreenode , the first is a blank image that i'm replacing it with a full image after selecting the node , and the second one is static.

the issue is that the blank image measure 4*4 px , and it is taking too much space than its real size.

I need to set up the space of the first left image (blank image) on the node,so that such white space does not appear.

thanks

  • 380
    posted

     

     

    WinTree.LeftImagesSize = New System.Drawing.Size(4, 4)

    This sets the Left Image Size to whatever you want it to be but this also means all left images will have to be the same size.  If you blank image is 4x4 and your second image is 32x32 then you will either have to shrink your second image or expand your first.  You would be better off making all your images the same dimensions.