The declaration > System.Windows.Forms.TreeView.SideTab sideTab1; (I assume the double "Forms" was just a typo)
implies that the SideTab class is nested in the TreeView class. Charlie > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Paul > Sent: Sunday, February 11, 2007 2:13 AM > To: winforms > Subject: SPAM-LOW: [Mono-winforms-list] Winform inheritance > > Hi, > > I have a the following (generated in VS.NET) > > foo.Designer.cs > : > : > private System.Windows.Forms.TreeView treeView1; private > System.Windows.Forms.Forms.TreeView.SideTab sideTab1; // ouch > private SideTab sd; > > and in foo.cs > > public class SideTab : System.Windows.Forms.UserControl > > VS.NET is throwing up the error "The type name 'SideTab' does > not exist in the type 'System.Windows.Forms.TreeView'" > > When I've done this sort of thing, I've used the inherited > type instead of UserControl (for example NumberBox : > TextBox), but that won't work in this instance (SideTab : > ViewTree). Is there anything else I need to do to get the > user control to work? > > Everything is in the same namespace. > > TTFN > > Paul > -- > "Mmmmmmmm....Shakira geschmiert mit schokolade" sagt Homer > _______________________________________________ Mono-winforms-list maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-winforms-list
