Grupos de Google ya no admite publicaciones ni suscripciones nuevas de Usenet. El contenido anterior sigue visible.

Visual Inheritance

14 vistas
Ir al primer mensaje no leído

Jaime Noriega

no leída,
10 jun 2002, 2:45:56 p.m.10/6/2002
para
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

no leída,
10 jun 2002, 5:12:55 p.m.10/6/2002
para
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

no leída,
10 jun 2002, 5:59:35 p.m.10/6/2002
para
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

no leída,
17 jun 2002, 1:46:49 p.m.17/6/2002
para
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

no leída,
18 jun 2002, 3:04:14 p.m.18/6/2002
para
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]

no leída,
11 jul 2002, 3:25:48 p.m.11/7/2002
para
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 mensajes nuevos