Home All Groups Group Topic Archive Search About

Problem adding icons to imagelist

Author
5 Dec 2006 6:51 PM
Manfred
Hello

I added some icons to an imagelist. I checked first the image size and
image depth and adjusted the settings according in the imagelist before
adding the icon. The icon still gets distorted when I use it in the
application (Treeview).

What could cause the distortion of the icon. Did I miss some settings.
(I'm new to VB.Net)


Regards

Manfred

Author
6 Dec 2006 2:18 PM
Miro
Try to see what happens when you display the image in a picturebox /
imagebox.
I had something simillar happen ( with image boxes ), and found out that
every image had to be the same size ( example 32 x 32 ) in the same
imagelist.
That fixed it for me.

I know that vb 2003 doesnt like png files that much either.  Not sure if
thats what your trying.   But thats more with color rather than distortion.

Sorry, New to vb.net still so thats the best I can help you there with that
one.

M.


Show quoteHide quote
"Manfred" <mm@nospam.ch> wrote in message
news:eJFWd5JGHHA.2128@TK2MSFTNGP03.phx.gbl...
> Hello
>
> I added some icons to an imagelist. I checked first the image size and
> image depth and adjusted the settings according in the imagelist before
> adding the icon. The icon still gets distorted when I use it in the
> application (Treeview).
>
> What could cause the distortion of the icon. Did I miss some settings.
> (I'm new to VB.Net)
>
>
> Regards
>
> Manfred