|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Toolbar buttons have blue line at bottom edge of imagesWindows 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 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. -- Show quoteBob 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. "Charles Goehring" <cgoeh***@san.rr.com> wrote in message news:0Unpd.108725$Kl3.65124@twister.socal.rr.com... > 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 > 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 :-\ ) Show quote "Bob Powell [MVP]" <bob@_spamkiller_bobpowell.net> ha scritto nel messaggio news:eNbYa8w0EHA.3820@TK2MSFTNGP11.phx.gbl... > 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. > > > > > > "Charles Goehring" <cgoeh***@san.rr.com> wrote in message > news:0Unpd.108725$Kl3.65124@twister.socal.rr.com... >> 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 >> > > 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 |
|||||||||||||||||||||||