Gabriel,
Did you get this to work? I am encountering the same problem, couldn't get
my custom ToolboxItem to work properly.
Mujdat,
My cusotm component and the custom toolbox item are in a custom dll,
registered with the GAC. I tried several things - reset my toolbox, closed
all vs.net, reopened 1 vs.net, added my custom control to the toolbox and
dragged and dropped it to a web form - nothing happens - the dll reference
is added to the project reference list and the cs file also seems to be
touched, but nothing happens to the form and aspx file!
Any ideas?
Thanks
Praveen
> When we use [ToolboxItem(typeof( MyToolItem))] its registered by VS when
> you custimize your tool bar add it into bar.. if your component tool is
[quoted text clipped - 11 lines]
> ts.AddToolboxItem(ti,"MyComponents");
> }
Praveen - 21 Apr 2005 22:40 GMT
I actually figured that if you derive from WebControlToolboxItem, instead of
ToolboxItem, it works!
> Gabriel,
>
[quoted text clipped - 30 lines]
>> ts.AddToolboxItem(ti,"MyComponents");
>> }
Mujdat Dinc - 22 Apr 2005 10:35 GMT
Praveen,
It works in my control. Nothing wrong with ToolboxItem.
>I actually figured that if you derive from WebControlToolboxItem, instead
>of ToolboxItem, it works!
[quoted text clipped - 33 lines]
>>> ts.AddToolboxItem(ti,"MyComponents");
>>> }
Praveen - 22 Apr 2005 13:37 GMT
I guess you need to derive from WebControlToolboxItem if you are using this
on a WebControl derived control.
> Praveen,
> It works in my control. Nothing wrong with ToolboxItem.
>
>>I actually figured that if you derive from WebControlToolboxItem, instead
>>of ToolboxItem, it works!