Further to the following, I think its a bug/feature of the IDE....
Add/remove a ToolboxItemFilter attribute to a designer, re-build the
project, and the change gets reflected immediately in the IDE.
Add/remove the attribute to a control/component, re-build... The change
doesn't get reflected until the IDE is restarted.
(Presumably, more specifically, until the toolbar is re-loaded, but I
can't see a simple way of doing that..)
I'd consider this a bug in the IDE.
> Further to the following, I think its a bug/feature of the IDE....
>
[quoted text clipped - 3 lines]
> Add/remove the attribute to a control/component, re-build... The change
> doesn't get reflected until the IDE is restarted.
I believe you only have to close all Forms Designers, not the entire IDE,
but I could be wrong.
> (Presumably, more specifically, until the toolbar is re-loaded, but I
> can't see a simple way of doing that..)
[quoted text clipped - 31 lines]
>> Any ideas? I can't see what I'm doing differently to the sample
>> application (shape designer) on MSDN, really..
AJ - 06 Nov 2006 09:01 GMT
> > Further to the following, I think its a bug/feature of the IDE....
> >
[quoted text clipped - 6 lines]
> I believe you only have to close all Forms Designers, not the entire IDE,
> but I could be wrong.
I'm pretty sure I tried that, and it doesn't work.
In any case it's inconsistent.... the attribute on the designer object
is reflected immediately (without needing to close anything - it
automatically refreshes the toolbars). The attribute on the control
class needs a restart.
> > (Presumably, more specifically, until the toolbar is re-loaded, but I
> > can't see a simple way of doing that..)
[quoted text clipped - 25 lines]
> >> [ToolboxItemFilter("Test",ToolboxItemFilterType.Require)]
> >> and all the control appear again.