473,403 Members | 2,270 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,403 software developers and data experts.

Custom Control - Toolbox bitmap?

I'm using a ToolboxBitmap attribute to specify a toolbox bitmap for a custom
component I've written. The component appears in the WindowsForms tray area,
below the form in which it is dropped. I'm using magenta as my transparency
color, and the lower-left corner pixel is magenta.

The bitmap works fine in the toolbox, but when I drop the component on a
form, the bitmap in the tray area lacks transparence--in other words, the
magenta background shows. Can anyone shed light on how to fix this? Thanks

David Veeneman
FS Components
Dec 10 '06 #1
2 2771
Found my answer--In VS 2005, the toolbox bitmap doesn't have to be a
16-color bmp, as it did in previous versions. I created my toolbox bitmap as
a 16 x 16 .png file, and it works fine, in the toolbox, and in the tray.
Dec 11 '06 #2
I found the answer--VS 2005 doesn't require that the toolbox bitmap be a
bmp, so it doesn't set a transparent color. I changed the t.b. to a png file
with transparency, and it works fine.
Dec 15 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Suzanne | last post by:
Hi all, I'm reposting this message as I'm experiencing this problem more and more frequently : I really hope someone out there can help me as I've been tearing my hair out on this one for a...
1
by: Maileen | last post by:
Hi, I've created a custom control and it is display on MyControl tab in Toolbox. but i would like to know how : 1. can i set a particular icon to my customer control to see it displayed in...
1
by: Maileen | last post by:
Hi, I've created my customer control from a ListView. Now, i would like to allocate it a bitmap in order to see it in my ToolBox bar. For this i use : ...
6
by: rodchar | last post by:
hey all, i'm trying to add an image to my custom control so that it looks unique in my toolbox. i saw in a webcast that all you had to do was add the image to the project and change the Build...
2
by: Tony Hedge | last post by:
Hello, Framework: NET 1.1, Language VB So I am going through the basic walkthrough example in .NET on how to create a simple custom control. Takes about 2 minutes and when done I have a DLL...
5
by: craigkenisston | last post by:
I created a derived class from "Literal". I put the code in the App_Code folder and the control is working as expected. Now, I wan this control to be in the ToolBox, just like the others, what...
15
by: rizwanahmed24 | last post by:
Hello i have made a custom control. i have placed a panel on it. I want this panel to behave just like the normal panel. The problem i was having is that the panel on my custom control doesnt...
5
by: John Kotuby | last post by:
Hi all, This is my first time trying to creaet and use a custome Web Control in a Web Site project in ASP.NET 2.0 with VS 2005 and VB. I created the control in a separate Web Control Library...
1
by: JTC^..^ | last post by:
When I create a custom control inside my Windows Application project it does not appear in the toolbox. I'm using Visual Studio 2005 (Team System for Developers), so this should appear...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.