Custom .NET control icon

  • Thread starter Thread starter --== Alain ==--
  • Start date Start date
A

--== Alain ==--

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.
 
this is what i tried till now without success :

[ToolboxBitmap(ARListViewControl::typeid, "ARListView2.bmp")]
public ref class ARListViewControl : public
System::Windows::Forms::UserControl
{
....
};
 
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 ==-- said:
this is what i tried till now without success :

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

--== Alain ==-- said:
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.
 
Back
Top