Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm General / July 2004

Tip: Looking for answers? Try searching our database.

Custom control toolbox icon transparency

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
GG - 19 Jul 2004 10:36 GMT
I create a custom control and I have added the 16x16 bmp embedded in the project. All works properly (the icon is correctly displayed in the toolbox) but I haven't figured out how to set the transparency color. Since the .bmp format doesn't have this feature, I think that Visual Studio chooses one color from the icon  but I don't understand how. I found that VS doesn't choose always the same color or the same palette index (some of the icons in the toolbox have the transparency and some don't).
Does anyone find out how this feature is set?
Thanks
Mick Doherty - 19 Jul 2004 11:22 GMT
bottom left pixel color.

Signature

Mick Doherty
http://dotnetrix.co.uk/nothing.html

> I create a custom control and I have added the 16x16 bmp embedded in the project. All works properly (the icon is correctly displayed in the toolbox)
but I haven't figured out how to set the transparency color. Since the .bmp
format doesn't have this feature, I think that Visual Studio chooses one
color from the icon  but I don't understand how. I found that VS doesn't
choose always the same color or the same palette index (some of the icons in
the toolbox have the transparency and some don't).
> Does anyone find out how this feature is set?
> Thanks
GG - 19 Jul 2004 14:22 GMT
> bottom left pixel color.

Thanks Mick, it works fine!
Only one detail: VS dowsn't make transparent only the color in that pixel but uses some sort of threshold and makes transparent also "similar" colors.

Thanks again for the reply

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.