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
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
>.
>
--
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...
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
>.
>
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