imagelist problem...

  • Thread starter Thread starter Roger
  • Start date Start date
R

Roger

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
 
* "Roger said:
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?
 
Roger said:
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?
 
Yes I did, if you'd like I'll send you the test project I've set up to test
this...?


Armin Zingler said:
Roger said:
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
 
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.
 
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
 
* "Roger said:
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...
 
Back
Top