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.