473,396 Members | 2,010 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,396 software developers and data experts.

How to have toolbox icon appear for custom control?

I want my custom control to have its own toolbox icon. I create the bmp file
and it has the same name as the control class. I then set it to embedded
resource but it still doesnt appear in the toolbox. What could i be doing
wrong?
Nov 17 '05 #1
2 2484
Showjumper,

I've got icons for some of my components working.

I'm doing everything the same way you say you are. The only thing I can
think of off hand that my code has in it that maybe yours doesn't is that
I'm inheriting System.ComponentModel.Component. I'm assuming that the
inheritance is taking care of some of the hookup for the icon.

"Showjumper" <sh*******@grkjashdjkf.com> wrote in message
news:OV**************@tk2msftngp13.phx.gbl...
I want my custom control to have its own toolbox icon. I create the bmp file and it has the same name as the control class. I then set it to embedded
resource but it still doesnt appear in the toolbox. What could i be doing
wrong?

Nov 17 '05 #2
have you used the ToolboxBitmapAttribute under the System.Drawing namespace?

"Showjumper" <sh*******@grkjashdjkf.com> wrote in message
news:OV**************@tk2msftngp13.phx.gbl...
I want my custom control to have its own toolbox icon. I create the bmp file and it has the same name as the control class. I then set it to embedded
resource but it still doesnt appear in the toolbox. What could i be doing
wrong?

Nov 17 '05 #3

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

Similar topics

1
by: Erik Cruz | last post by:
Hi. I wrote two simple custom controls to help me learn asp.net. Each control is his own project, I didn't put them on the same assembly. The first control derives from BaseValidator and the...
0
by: Dave | last post by:
I'm creating a custom control. To start, I created the control in a seperate project in the same solution. I didn't change anything from the template vs.net creates for a web custom control, I...
0
by: tony | last post by:
Hello!! In the Toolbox I have now two controls with identical name despite having not added the control twice. The two have different icon and I can only delete on of them but not the other. I...
0
by: Sagaert Johan | last post by:
Hi I noticed that the icon in the toolbox is always the default icon even when an icon has been specified. The custom icon only shows up when i add assembly to the toolbox manually. The...
4
by: Suhaib | last post by:
Hi All, I'm using VS 2005 8.0.50727.42 (RTM.050727-4200), with .NET framework 2.0. Everything was working fine, but now suddenly I don't see my ToolBox icons, whether you are in design mode or...
1
by: jsbranly | last post by:
I've been trying to create custom controls for my toolbox. I'm able to easily create a UserControl or Control and when I build the solution they appear in my Toolbox. I'd like to do the same thing...
2
by: R.A.F. | last post by:
Hi, 2 Days ago i wrote a post about "how to add programmatically custom control on Toolbox". I'm still blocked with this issue. Is there someone who did it under C#.NET 2005 and 2008 ? ...
0
by: R.A.F. | last post by:
Hi, I'm still struggling with my issue about how programmatically add a custom control on Toolbox palette. it creates well my TAB with my custom name, but it does not add my custom control....
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
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.