PC Review


Reply
Thread Tools Rate Thread

Form Inheritance

 
 
Chris Moore
Guest
Posts: n/a
 
      10th Oct 2003
Hi,

I think this is a bug:

Make a form, add some controls. Add MustInherit to the form
declaration and save it.

Try and create an inherited form based on it - the form is not shown
in the list.

Remove MustInherit and it appears in the list.

I came across this because I wanted to create a form in which I have
to populate some functions on the subclassed version. If I create a
Sub with Mustoverride I have to declare the class with MustInherit -
logical. But noone seems to have "told" the picker.

Pain in the BTM.

Chris
 
Reply With Quote
 
 
 
 
Herfried K. Wagner
Guest
Posts: n/a
 
      10th Oct 2003
* Chris Moore schrieb:
> I think this is a bug:


No, it's a limitation of the windows forms designer.

> Make a form, add some controls. Add MustInherit to the form
> declaration and save it.
>
> Try and create an inherited form based on it - the form is not shown
> in the list.
>
> Remove MustInherit and it appears in the list.


You must not declare forms as 'MustInherit' if you want to use them with
the Windows Forms designer.

--
Herfried K. Wagner
Microsoft MVP
<http://www.mvps.org/dotnet>

 
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 10:48 AM.