imagelist problem...

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
 
H

Herfried K. Wagner [MVP]

* "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?
 
A

Armin Zingler

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?
 
R

Roger

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
 
A

Armin Zingler

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.
 
R

Roger

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
 
H

Herfried K. Wagner [MVP]

* "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...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top