473,320 Members | 1,766 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Problem adding icons to imagelist

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
Dec 5 '06 #1
1 1564
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.
"Manfred" <mm@nospam.chwrote in message
news:eJ**************@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

Dec 6 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: What-a-Tool | last post by:
Is possible to use the windows image list for icon display in my treeview control? Would appreciate it you could point me towards a code sample or Key phrase to use in a google search. Thanks...
3
by: Mauro | last post by:
Hi, I have created a component similar to ImageList but my component stored Icons (System.Drawing.Icon). For being precise, the stored data is an object created from me that to its inside it has...
0
by: Tony Lugg | last post by:
I have an application with a document management form. When users add documents to the form, I call the API function SHGetFileInfo to get the associated large and small icons for the file. These...
7
by: Andrew Christiansen | last post by:
Hey everyone. I have Visual Basic .NET 2003 and am trying to show images on a treeview control. I have the imagelist on the form filled with images, and have the ImageList property of the...
3
by: Tony Lugg | last post by:
I have an application with a document management form. When users add documents to the form, I call the API function SHGetFileInfo to get the associated large and small icons for the file. These...
2
by: sonu | last post by:
Hi, I have a problem for use of imagelist. The problem is I have written a code which returns me the icons associated with the files depending on their type. After getting the icon for the...
3
by: Gardner Andersen | last post by:
I have an imagelist with 7 icons images in the collection. I am trying to assign the icons to the items in a listview. In the designer, the proper icons appear next to the listview items (a fixed...
3
by: Jeff Jarrell | last post by:
We are migrating a large app to .net. There are many forms and there will be many, many icons. What are some suggested techniques for more or less sharing imagelists (easy enough), BUT without...
1
by: John | last post by:
Is there such a thing as storing icons or bitmaps into a resource file, and adding more icons or bitmaps into the resource file at runtime? I want to store a bunch of icons into a resource file,...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.