[Mono-winforms-list] Winform inheritance

Paul paul at all-the-johnsons.co.uk
Sun Feb 11 05:12:46 EST 2007


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.ximian.com/pipermail/mono-winforms-list/attachments/20070211/9b4575c2/attachment.bin 


More information about the Mono-winforms-list mailing list