473,480 Members | 1,932 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Custom .NET control icon

Hi,

How can i custom the icon (shown on ToolBox Palette) of my Custom Visual
C++.NET control ?

Moreover, if i want to place my custom control on a particular TAB, how
can i do that ?

thanks a lot,

Al.
Oct 15 '06 #1
2 2687
this is what i tried till now without success :

[ToolboxBitmap(ARListViewControl::typeid, "ARListView2.bmp")]
public ref class ARListViewControl : public
System::Windows::Forms::UserControl
{
....
};

--== Alain ==-- wrote:
Hi,

How can i custom the icon (shown on ToolBox Palette) of my Custom Visual
C++.NET control ?

Moreover, if i want to place my custom control on a particular TAB, how
can i do that ?

thanks a lot,

Al.
Oct 15 '06 #2
The version where you specify the typeid is if you put the attribute on the
assembly (you can then assign an icon to a class you didn't write). If you
put the attribute directly on the UserControl, use the other
ToolboxBitmapAttribute constructor.

As for which TAB it's on, try CategoryAttribute .

http://msdn2.microsoft.com/en-us/library/tk67c2t8.aspx

"--== Alain ==--" <no****@noemail.comwrote in message
news:up**************@TK2MSFTNGP05.phx.gbl...
this is what i tried till now without success :

[ToolboxBitmap(ARListViewControl::typeid, "ARListView2.bmp")]
public ref class ARListViewControl : public
System::Windows::Forms::UserControl
{
...
};

--== Alain ==-- wrote:
>Hi,

How can i custom the icon (shown on ToolBox Palette) of my Custom Visual
C++.NET control ?

Moreover, if i want to place my custom control on a particular TAB, how
can i do that ?

thanks a lot,

Al.

Oct 26 '06 #3

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

Similar topics

0
1455
by: Mark Sisson | last post by:
Hi gurus. I created a CustomControl starting from a c# Web Control Library Project. I immediately compiled it in Release mode without touching a line of code. Next, I went to another instance of...
1
10041
by: kathy | last post by:
I try to add a custom control icon by setting the project property page->application icon. But seems no effect. how to do that?
1
1310
by: Derrick | last post by:
Hello all; I'm looking at creating a custom nonvisual component (like the SQLConnection control, for example). I would like to do one thing with this control which is a little more complex. ...
2
2487
by: Showjumper | last post by:
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...
2
4036
by: Showjumper | last post by:
I still cant get an icon to display for my custom server control in the toolbox. I create a bmp that is the same name as the class of the control. I set it to embedded resource and then build but...
1
1455
by: Brian Henry | last post by:
I am trying to make a custom user control that gets a list of users from our database and populates the list, its an owner drawn control also, the problem is, I placed the item onto a form and...
1
1021
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
2879
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
2472
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...
0
7037
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
7032
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
7076
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6730
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
5321
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,...
1
4767
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...
0
4471
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
2990
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
2976
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.