As an example, here's a simple attribute, derived from ToolboxItemAttribute:
<ToolboxItemX(False)> _
Public Class Class1
Inherits Button
End Class
Public Class ToolboxItemXAttribute
Inherits ToolboxItemAttribute
Public Sub New(ByVal defaultType As Boolean)
MyBase.New(defaultType)
End Sub
End Class
The problem is that when I show the toolbox, Class1 is appearing in it. It's as if my attribute is ignored, and so the default toolboxitem attribute is used.
I've used reflector to look at the logic of ToolboxService.GetToolboxItem and as far as I can see, it should pick up my attribute and see that the item should not be displayed in the toolbox.
PS: I've tried resetting the toolbox, closing the ide and reopening etc.