Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Visual Inheritance

14 views
Skip to first unread message

Jaime Noriega

unread,
Jun 10, 2002, 2:45:56 PM6/10/02
to
Trying to create a new form from a inherited form. I get this error

An exception occued while trying to create an instance of rwSuper.Master.
The exception was "File or assembly name System.Drawing, or one of its
dependancies, was not found"

Wassssssup?

Thanks

Jaime

Jason Polliard

unread,
Jun 10, 2002, 5:12:55 PM6/10/02
to
No Visual Inheritance in CF. I ran into the same problem
myself.

I would say do as much Visual Designer work as possible
on a Form before inheriting from another Form.

Not sure if this will be fixed in the next release.

Kind of a pain ... but what can you do?

Jason

>.
>

Jimco Add-ins

unread,
Jun 10, 2002, 5:59:35 PM6/10/02
to
There is visual inheritance. Just not in the designer.

--
Jim
Jimco Add-ins
http://www.jimcoaddins.com
-----------------------------------------------------------
Freeware add-ins for
Microsoft FrontPage and
Visual Studio .NET
-----------------------------------------------------------


"Jason Polliard" <jpol...@NOcomputerlogicSPAM.com> wrote in message
news:d21401c210c3$96c1b6e0$3aef2ecf@TKMSFTNGXA09...

[MS] Michael Lipp

unread,
Jun 17, 2002, 1:46:49 PM6/17/02
to
Are you talking about using the designer, or runtime?

I can inherit from Forms just fine using the runtime with this code below:

using System;
using System.Drawing;
using System.Windows.Forms;

public class Test : System.Windows.Forms.Form
{
Button x;

protected override void OnLoad(EventArgs e)
{
x = new Button();
x.Parent = this;
x.Bounds = new Rectangle(10, 10, 150, 30);
x.Text = "click me";
x.Click += new EventHandler(this._Click);
}

private void _Click(object o, EventArgs e)
{
myForm2 form = new myForm2();
form.ShowDialog();
}

public static void Main()
{
Application.Run(new Test());
}
}


public class myForm : Form
{
public myForm()
{
this.Text = "myForm";
this.BackColor = Color.Yellow;
}
}

public class myForm2 : myForm
{
public myForm2()
{
this.Text = "myForm2";
this.BackColor = Color.Blue;
}
}


NETCF Beta FAQ's -- http://www.gotdotnet.com/team/netcf/FAQ.aspx
This posting is provided "AS IS" with no warranties, and confers no rights.

Jason Polliard

unread,
Jun 18, 2002, 3:04:14 PM6/18/02
to
True. I'm doing plenty of Form inheritance ... I just
meant you can't use the visual designer on inherited
forms, so you should do your visual designer work before
inheriting another form.

Jason

>.
>

Mark Gilbert [MS]

unread,
Jul 11, 2002, 3:25:48 PM7/11/02
to
Yes, we don't have support for design time with inherited forms in the
first release.

Thanks,
Mark Gilbert

This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------
> Content-Class: urn:content-classes:message
> From: "Jason Polliard" <jpol...@NOcomputerlogicSPAM.com>
> Sender: "Jason Polliard" <jpol...@NOcomputerlogicSPAM.com>
> References: <eM0Ol8KECHA.824@tkmsftngp05> <N0#zZbiFCHA.2264@cpmsftngxa08>
> Subject: RE: Visual Inheritance
> Date: Tue, 18 Jun 2002 12:04:14 -0700
> Lines: 69
> Message-ID: <e20001c216fa$efd90ed0$a4e62ecf@tkmsftngxa06>
> MIME-Version: 1.0
> Content-Type: text/plain;
> charset="iso-8859-1"
> Content-Transfer-Encoding: 7bit
> X-Newsreader: Microsoft CDO for Windows 2000
> X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
> Thread-Index: AcIW+u/ZeSY0zvi2Q8mjR2l3y3H7uQ==
> Newsgroups: microsoft.public.dotnet.framework.compactframework
> Path: cpmsftngxa08
> Xref: cpmsftngxa08 microsoft.public.dotnet.framework.compactframework:4554
> NNTP-Posting-Host: TKMSFTNGXA06 10.201.232.165
> X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework

0 new messages