I'm trying to use the System.ComponentModel.DesignerCategory
Attribtue to prevent an extended Tab Page componenet from automatically opening up in the designer. The suggestions on other StackOverflow questions 1,2,3, don't seem to work.
Here's the code on the component
<!-- language: lang-vb --><System.ComponentModel.DesignerCategory("Code")>
Public Class ExtendedTabPage : Inherits Windows.Forms.TabPage
Here's the code in my .vbproj file
<!-- language: lang-xml --><Compile Include="ExtendedTabPage.vb">
<SubType>Component</SubType>
</Compile>
I've tried initializaing the DesignerCategory Attribute with a ""
and also "Code"
, doing rebuilds and reopening the solution, but I still get the screen below from a double click on the component. Do I have to remove the project SubType? Will that affect the way the code compiles?