PC Review


Reply
Thread Tools Rate Thread

Form Inheritance

 
 
James
Guest
Posts: n/a
 
      1st Oct 2003
Hi All,

I want to have a Base Form class that will allow me to
provide a template for all forms within my application.
Namely functional inheritance rather than GUI.

I created a class and derived my new form from it but it
will not display in the Designer.

I started using the following but there must be a better
way to do it!!!

#if DESIGN
public class frmLogin : System.Windows.Forms.Form
#else
public class frmLogin : MyApp.Framework.MFMForm
#endif

Can someone tell me how to use Form Inheritance in the
Compact Framework.

Thanks,
James.
 
Reply With Quote
 
 
 
 
Floris Briolas
Guest
Posts: n/a
 
      1st Oct 2003
Hi James

> Can someone tell me how to use Form Inheritance in the
> Compact Framework.


yup, that's sounds just like I was doing it.. anyway, inherited forms are
not supported in the designer but you can do it in code. But you already
figured this out...

regards

Floris Briolas

"James" <(E-Mail Removed)> wrote in message
news:144801c387fb$a7fc3290$(E-Mail Removed)...
> Hi All,
>
> I want to have a Base Form class that will allow me to
> provide a template for all forms within my application.
> Namely functional inheritance rather than GUI.
>
> I created a class and derived my new form from it but it
> will not display in the Designer.
>
> I started using the following but there must be a better
> way to do it!!!
>
> #if DESIGN
> public class frmLogin : System.Windows.Forms.Form
> #else
> public class frmLogin : MyApp.Framework.MFMForm
> #endif
>
> Can someone tell me how to use Form Inheritance in the
> Compact Framework.
>
> Thanks,
> James.



 
Reply With Quote
 
 
 
 
David So [MSFT]
Guest
Posts: n/a
 
      8th Oct 2003
This way you're doing now is correct, the designer in VS 2003 doesn't
support inherited forms and it will be supported in the coming version of
VS.

David
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
| Content-Class: urn:content-classes:message
| From: "James" <(E-Mail Removed)>
| Sender: "James" <(E-Mail Removed)>
| Subject: Form Inheritance
| Date: Wed, 1 Oct 2003 02:09:02 -0700
| Lines: 23
| Message-ID: <144801c387fb$a7fc3290$(E-Mail Removed)>
| 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: AcOH+6f8eNb9yN23TEScMByqkIlvNg==
| Newsgroups: microsoft.public.dotnet.framework.compactframework
| Path: cpmsftngxa06.phx.gbl
| Xref: cpmsftngxa06.phx.gbl
microsoft.public.dotnet.framework.compactframework:34847
| NNTP-Posting-Host: TK2MSFTNGXA11 10.40.1.163
| X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework
|
| Hi All,
|
| I want to have a Base Form class that will allow me to
| provide a template for all forms within my application.
| Namely functional inheritance rather than GUI.
|
| I created a class and derived my new form from it but it
| will not display in the Designer.
|
| I started using the following but there must be a better
| way to do it!!!
|
| #if DESIGN
| public class frmLogin : System.Windows.Forms.Form
| #else
| public class frmLogin : MyApp.Framework.MFMForm
| #endif
|
| Can someone tell me how to use Form Inheritance in the
| Compact Framework.
|
| Thanks,
| James.
|

 
Reply With Quote
 
Paul
Guest
Posts: n/a
 
      8th Oct 2003
Out of interest, when you say 'the coming version of VS' does that mean
people have to upgrade to VS2004 (or what ever it's called)?

David So [MSFT] wrote:
> This way you're doing now is correct, the designer in VS 2003 doesn't
> support inherited forms and it will be supported in the coming version of
> VS.
>
> David
> This posting is provided "AS IS" with no warranties, and confers no rights.
> --------------------
> | Content-Class: urn:content-classes:message
> | From: "James" <(E-Mail Removed)>
> | Sender: "James" <(E-Mail Removed)>
> | Subject: Form Inheritance
> | Date: Wed, 1 Oct 2003 02:09:02 -0700
> | Lines: 23
> | Message-ID: <144801c387fb$a7fc3290$(E-Mail Removed)>
> | 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: AcOH+6f8eNb9yN23TEScMByqkIlvNg==
> | Newsgroups: microsoft.public.dotnet.framework.compactframework
> | Path: cpmsftngxa06.phx.gbl
> | Xref: cpmsftngxa06.phx.gbl
> microsoft.public.dotnet.framework.compactframework:34847
> | NNTP-Posting-Host: TK2MSFTNGXA11 10.40.1.163
> | X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework
> |
> | Hi All,
> |
> | I want to have a Base Form class that will allow me to
> | provide a template for all forms within my application.
> | Namely functional inheritance rather than GUI.
> |
> | I created a class and derived my new form from it but it
> | will not display in the Designer.
> |
> | I started using the following but there must be a better
> | way to do it!!!
> |
> | #if DESIGN
> | public class frmLogin : System.Windows.Forms.Form
> | #else
> | public class frmLogin : MyApp.Framework.MFMForm
> | #endif
> |
> | Can someone tell me how to use Form Inheritance in the
> | Compact Framework.
> |
> | Thanks,
> | James.
> |
>


 
Reply With Quote
 
David So [MSFT]
Guest
Posts: n/a
 
      9th Oct 2003
The next version of VS would support Form Inheritance. This is a new
feature for Device development. User who wants to use this feature would
need to upgrade to this version.

Thanks,

David

This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
| From: Paul <Paul@Don'tChuffingSpamMe.com>
| Newsgroups: microsoft.public.dotnet.framework.compactframework
| Subject: Re: Form Inheritance
| Date: Wed, 08 Oct 2003 11:33:30 +0100
| Lines: 58
| Message-ID: <bm0p3h$88a$1$(E-Mail Removed)>
| References: <144801c387fb$a7fc3290$(E-Mail Removed)>
<(E-Mail Removed)>
| NNTP-Posting-Host: 80.177.200.10
| Mime-Version: 1.0
| Content-Type: text/plain; charset=us-ascii; format=flowed
| Content-Transfer-Encoding: 7bit
| X-Trace: news.demon.co.uk 1065609137 8458 80.177.200.10 (8 Oct 2003
10:32:17 GMT)
| X-Complaints-To: (E-Mail Removed)
| NNTP-Posting-Date: Wed, 8 Oct 2003 10:32:17 +0000 (UTC)
| In-Reply-To: <(E-Mail Removed)>
| X-Accept-Language: en-us, en
| User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.5b)
Gecko/20030901 Thunderbird/0.2
| Path:
cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!newsfeed00.sul.t-online.de!t-onlin
e.de!kibo.news.demon.net!news.demon.co.uk!demon!not-for-mail
| Xref: cpmsftngxa06.phx.gbl
microsoft.public.dotnet.framework.compactframework:35405
| X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework
|
| Out of interest, when you say 'the coming version of VS' does that mean
| people have to upgrade to VS2004 (or what ever it's called)?
|
| David So [MSFT] wrote:
| > This way you're doing now is correct, the designer in VS 2003 doesn't
| > support inherited forms and it will be supported in the coming version
of
| > VS.
| >
| > David
| > This posting is provided "AS IS" with no warranties, and confers no
rights.
| > --------------------
| > | Content-Class: urn:content-classes:message
| > | From: "James" <(E-Mail Removed)>
| > | Sender: "James" <(E-Mail Removed)>
| > | Subject: Form Inheritance
| > | Date: Wed, 1 Oct 2003 02:09:02 -0700
| > | Lines: 23
| > | Message-ID: <144801c387fb$a7fc3290$(E-Mail Removed)>
| > | 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: AcOH+6f8eNb9yN23TEScMByqkIlvNg==
| > | Newsgroups: microsoft.public.dotnet.framework.compactframework
| > | Path: cpmsftngxa06.phx.gbl
| > | Xref: cpmsftngxa06.phx.gbl
| > microsoft.public.dotnet.framework.compactframework:34847
| > | NNTP-Posting-Host: TK2MSFTNGXA11 10.40.1.163
| > | X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework
| > |
| > | Hi All,
| > |
| > | I want to have a Base Form class that will allow me to
| > | provide a template for all forms within my application.
| > | Namely functional inheritance rather than GUI.
| > |
| > | I created a class and derived my new form from it but it
| > | will not display in the Designer.
| > |
| > | I started using the following but there must be a better
| > | way to do it!!!
| > |
| > | #if DESIGN
| > | public class frmLogin : System.Windows.Forms.Form
| > | #else
| > | public class frmLogin : MyApp.Framework.MFMForm
| > | #endif
| > |
| > | Can someone tell me how to use Form Inheritance in the
| > | Compact Framework.
| > |
| > | Thanks,
| > | James.
| > |
| >
|
|

 
Reply With Quote
 
Paul
Guest
Posts: n/a
 
      10th Oct 2003
Joy - leave something out that everyone wants, and then charge to put it
in...


David So [MSFT] wrote:

> The next version of VS would support Form Inheritance. This is a new
> feature for Device development. User who wants to use this feature would
> need to upgrade to this version.
>
> Thanks,
>
> David
>
> This posting is provided "AS IS" with no warranties, and confers no rights.
> --------------------
> | From: Paul <Paul@Don'tChuffingSpamMe.com>
> | Newsgroups: microsoft.public.dotnet.framework.compactframework
> | Subject: Re: Form Inheritance
> | Date: Wed, 08 Oct 2003 11:33:30 +0100
> | Lines: 58
> | Message-ID: <bm0p3h$88a$1$(E-Mail Removed)>
> | References: <144801c387fb$a7fc3290$(E-Mail Removed)>
> <(E-Mail Removed)>
> | NNTP-Posting-Host: 80.177.200.10
> | Mime-Version: 1.0
> | Content-Type: text/plain; charset=us-ascii; format=flowed
> | Content-Transfer-Encoding: 7bit
> | X-Trace: news.demon.co.uk 1065609137 8458 80.177.200.10 (8 Oct 2003
> 10:32:17 GMT)
> | X-Complaints-To: (E-Mail Removed)
> | NNTP-Posting-Date: Wed, 8 Oct 2003 10:32:17 +0000 (UTC)
> | In-Reply-To: <(E-Mail Removed)>
> | X-Accept-Language: en-us, en
> | User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.5b)
> Gecko/20030901 Thunderbird/0.2
> | Path:
> cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!newsfeed00.sul.t-online.de!t-onlin
> e.de!kibo.news.demon.net!news.demon.co.uk!demon!not-for-mail
> | Xref: cpmsftngxa06.phx.gbl
> microsoft.public.dotnet.framework.compactframework:35405
> | X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework
> |
> | Out of interest, when you say 'the coming version of VS' does that mean
> | people have to upgrade to VS2004 (or what ever it's called)?
> |
> | David So [MSFT] wrote:
> | > This way you're doing now is correct, the designer in VS 2003 doesn't
> | > support inherited forms and it will be supported in the coming version
> of
> | > VS.
> | >
> | > David
> | > This posting is provided "AS IS" with no warranties, and confers no
> rights.
> | > --------------------
> | > | Content-Class: urn:content-classes:message
> | > | From: "James" <(E-Mail Removed)>
> | > | Sender: "James" <(E-Mail Removed)>
> | > | Subject: Form Inheritance
> | > | Date: Wed, 1 Oct 2003 02:09:02 -0700
> | > | Lines: 23
> | > | Message-ID: <144801c387fb$a7fc3290$(E-Mail Removed)>
> | > | 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: AcOH+6f8eNb9yN23TEScMByqkIlvNg==
> | > | Newsgroups: microsoft.public.dotnet.framework.compactframework
> | > | Path: cpmsftngxa06.phx.gbl
> | > | Xref: cpmsftngxa06.phx.gbl
> | > microsoft.public.dotnet.framework.compactframework:34847
> | > | NNTP-Posting-Host: TK2MSFTNGXA11 10.40.1.163
> | > | X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework
> | > |
> | > | Hi All,
> | > |
> | > | I want to have a Base Form class that will allow me to
> | > | provide a template for all forms within my application.
> | > | Namely functional inheritance rather than GUI.
> | > |
> | > | I created a class and derived my new form from it but it
> | > | will not display in the Designer.
> | > |
> | > | I started using the following but there must be a better
> | > | way to do it!!!
> | > |
> | > | #if DESIGN
> | > | public class frmLogin : System.Windows.Forms.Form
> | > | #else
> | > | public class frmLogin : MyApp.Framework.MFMForm
> | > | #endif
> | > |
> | > | Can someone tell me how to use Form Inheritance in the
> | > | Compact Framework.
> | > |
> | > | Thanks,
> | > | James.
> | > |
> | >
> |
> |
>


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Form Inheritance: Specified Cast Is Not Valid? James Microsoft Dot NET Framework 5 20th Sep 2004 09:04 PM
Form Inheritance still a problem in VS 2003? Mike Microsoft Dot NET Framework 4 4th May 2004 02:33 AM
Need help with windows form inheritance Nathon Dalton Microsoft ASP .NET 1 17th Oct 2003 10:29 PM
Form Inheritance and Anchor mike Microsoft Dot NET Framework 0 26th Jul 2003 12:01 AM
visual inheritance of web form varun Microsoft ASP .NET 5 7th Jul 2003 12:47 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:10 AM.