Toolbar buttons have blue line at bottom edge of images

C

Charles Goehring

Windows Forms App Gurus,

I have a toolbar on a form. Some of the buttons have images on them.
Buttons with images have a blue line that is like a focus indicator at
the bottom edge of the image (all toolbarbuttons with images have this).

I can't figure out how to get this turned off. Tried setting CanFocus
to off but it complains it is

readonly.

Can someone give me a clue please?
Thanks

Chuck
 
B

Bob Powell [MVP]

Have you created the buttons the wrong sixe or from larger images? Sometimes
the resizing process will create artifacts in the image due to certain
pixels being averaged.

--
Bob Powell [MVP]
Visual C#, System.Drawing

Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm

All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.
 
M

Marco De Sanctis

Are the images in PNG format?
If so, the problem is that ImageList control doesn't seem to support PNG's 8
bit Alpha Channel transparency.
Unfortunately, the only clue is editing images and replacing 8 bit
transparency with 1 bit transparency (obviously loosing image qualiy :-\ )
 
C

Charles Goehring via DotNetMonster.com

Thanks for the ideas. Checked into these.

The images are bmp files with no transparency. Captured with Photoshop 5. The image size in the image list did not match the images, so I fixed that. All images are the same size. Is there a specific size they should be or must they be square?

The mark still shows.

Any additional deas would be appreciated.

Thanks
 

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