473,383 Members | 1,952 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,383 software developers and data experts.

imagelist problem...

Hi,

I noticed a very strange problem:

I made a new Winforms project, added two regular buttons, one imagelist, and
added one .png image to this list.

If I make button A's Image property point [directely] to this imagefile, it
appears on the button and looks great.

If I make button B's Imagelist property point to the newly created imagelist
and set it's index accordingly, the picture shows, but it looks
terrible....at best....

why??? The sourceimage is exactly the same, and it has the same constraints
(pic size, imagedepth) etc....

Getting frustrated here...anyone...?

Regards,
Roger
Nov 20 '05 #1
7 1140
* "Roger" <ro******@hotmail.com> scripsit:
I made a new Winforms project, added two regular buttons, one imagelist, and
added one .png image to this list.

If I make button A's Image property point [directely] to this imagefile, it
appears on the button and looks great.

If I make button B's Imagelist property point to the newly created imagelist
and set it's index accordingly, the picture shows, but it looks
terrible....at best....

why??? The sourceimage is exactly the same, and it has the same constraints
(pic size, imagedepth) etc....


Are you sure all these properties are configured correctly for the
ImageList control?

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #2
"Roger" <ro******@hotmail.com> schrieb
I noticed a very strange problem:

I made a new Winforms project, added two regular buttons, one
imagelist, and added one .png image to this list.

If I make button A's Image property point [directely] to this
imagefile, it appears on the button and looks great.

If I make button B's Imagelist property point to the newly created
imagelist and set it's index accordingly, the picture shows, but it
looks terrible....at best....

why??? The sourceimage is exactly the same, and it has the same
constraints (pic size, imagedepth) etc....


Did you set Imagelist.Imagesize property?
--
Armin

http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html

Nov 20 '05 #3
Yes I did, if you'd like I'll send you the test project I've set up to test
this...?
"Armin Zingler" <az*******@freenet.de> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
"Roger" <ro******@hotmail.com> schrieb
I noticed a very strange problem:

I made a new Winforms project, added two regular buttons, one
imagelist, and added one .png image to this list.

If I make button A's Image property point [directely] to this
imagefile, it appears on the button and looks great.

If I make button B's Imagelist property point to the newly created
imagelist and set it's index accordingly, the picture shows, but it
looks terrible....at best....

why??? The sourceimage is exactly the same, and it has the same
constraints (pic size, imagedepth) etc....


Did you set Imagelist.Imagesize property?
--
Armin

http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html

Nov 20 '05 #4
"Roger" <ro******@hotmail.com> schrieb
Yes I did, if you'd like I'll send you the test project I've set up
to test this...?

az*******@freenet.de is valid.
--
Armin

Nov 20 '05 #5
Roger and I wrote some private messages but I couldn't solve the problem.
I'm really interested in the explanation for the "blue-border-problem".

Roger, you should upload the file to a ftp/web server and post the link here
so other people are also able to help you.
--
Armin

http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html

Nov 20 '05 #6
Thank you for your efforts in tying to solve this issue Armin - I truly
appreciate it.

I've made a new post to the newsgroup with subject: "ImageList: Is this a
bug...?" and provided a link to my project files for D/L if anyone else
want's to have a go at this...

Best regards,
Roger


"Armin Zingler" <az*******@freenet.de> wrote in message
news:%2******************@TK2MSFTNGP09.phx.gbl...
Roger and I wrote some private messages but I couldn't solve the problem.
I'm really interested in the explanation for the "blue-border-problem".

Roger, you should upload the file to a ftp/web server and post the link here so other people are also able to help you.
--
Armin

http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html

Nov 20 '05 #7
* "Roger" <ro******@hotmail.com> scripsit:
bug...?" and provided a link to my project files for D/L if anyone else
want's to have a go at this...


Thanks for providing the project file. I wrote a reply to the new
thread...

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #8

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

Similar topics

4
by: Chuck | last post by:
When ever I try to implement an ImageList, I always get an exception when the application runs. The ImageList doesn't even have to be used by anything. An empty ImageList doesn't throw! The...
2
by: A. Solomon | last post by:
Hi, I have a ImageList containing 4 bitmaps attached to a UserControl which acts as a Open/Close panel. This panel, upon click, switches the image in a PictureBox control to indicate the...
2
by: Bob C. | last post by:
Hi All, I am using the ImageList/ListView Components to display around 100 images in C#.NET. The issue i have is, some times i may need to display the thumbnail of size more then 256x256 in...
11
by: Juan Romero | last post by:
Hey guys, I have an ImageList control that stores my icons. What I need to do is find out if the icon at hand already exists in the ImageList so I dont enter it twice. How can I do that? ...
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...
4
by: David | last post by:
I have a problem that just cropped up with using an ImageList in my project I am using VB .NET 200 Problem: I have existing Form with 2 Image List controls. ImageList16 (for 16x16 Images) and...
0
by: Andre Viens | last post by:
Hello, I am using the following variation of code from <http://support.microsoft.com/default.aspx?scid=kb;EN-US;319340> to add icons to an imagelist for use in a listview: Private Structure...
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...
6
by: henrycortezwu | last post by:
Hi, I have a WinXPSP2, P4 3.2GHZ, 1GIG RAM on my dev machine using VS2005 VB.NET. I did the following procedure: 1. Added 82 icons (128x128 in size & 32bit Depth) in an imagelist control 2....
0
by: wolffy | last post by:
okay heres my problem; i want to add image K to a imagelist, thats easy. The hard part is that the imagelist was made in Application Settings. **I made the imagelist in application settings so i...
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

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.