[Mono-winforms-list] SPAM-LOW: Winform inheritance
Charlie Poole
charlie at nunit.com
Sun Feb 11 14:10:17 EST 2007
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: mono-winforms-list-bounces at lists.ximian.com
> [mailto:mono-winforms-list-bounces at lists.ximian.com] 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
>
More information about the Mono-winforms-list
mailing list