Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / May 2004

Tip: Looking for answers? Try searching our database.

Form Inheritance still a problem in VS 2003?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Mike - 03 May 2004 20:02 GMT
I'm running into a problem that I've seen ALOT of people
have.  I've created a base form and when I try to bring up
the inherited form in the form designer, it says that

"The designer could not be shown for this file because
none of the classes within it can be designed."

I've tried restarting VS.NET, rebuilding, closing all
design views, just about everything that anyone has said
to try and do.

Has MS released anything on this yet or does anyone know
what the problem could be.  This is VERY frustrating.
Jochen Kalmbach - 03 May 2004 20:32 GMT
> I'm running into a problem that I've seen ALOT of people
> have.  I've created a base form and when I try to bring up
> the inherited form in the form designer, it says that
>
> "The designer could not be shown for this file because
> none of the classes within it can be designed."

For me it works perfectly...
Is your Forms-class really the FIRST class in the cs-file ?
Your Forms-Class MUST BE the first class in the cs-file.

Signature

Greetings
 Jochen

  Do you need a memory-leak finder ?
  http://www.codeproject.com/tools/leakfinder.asp
 
  Do you need daily reports from your server?
  http://sourceforge.net/projects/srvreport/

- 03 May 2004 20:48 GMT
Thanks Jochen for replying.

Yes, it is the first class in the file.

Get this though...I turned off CAS and it works no problem.

Since that is the case, here is some info on my setup as
it pertains to CAS.

My development directory is on a drive that is mapped to
myself.  I have gone into the the framework security setup
and given my intranet FULL trust, so really it should
behave as though it were located on my local computer.  
But when I tested the form inheritance from a project on
my local machine, it didn't work either, which is why I
ruled out code security as the culprit early on.  But as
stated above, it does seem to be the source of the problem.

What do you think is going on here?

>For me it works perfectly...
>Is your Forms-class really the FIRST class in the cs-file ?
>Your Forms-Class MUST BE the first class in the cs-file.
Marc Butenko - 03 May 2004 20:58 GMT
I have seen this same problem with VB.NET when I have code in the Form.Load
or Form.Activiate event in the base class.  If I comment this code out,
everything seems to work fine.  But as soon as I uncomment this code, I get
the same problems that you are describing...

Not sure if that helps,
Signature

Marc Butenko
mbutenko@bresnan.net

> Thanks Jochen for replying.
>
[quoted text clipped - 20 lines]
> file ?
> >Your Forms-Class MUST BE the first class in the cs-file.
John Saunders - 04 May 2004 02:33 GMT
I'll echo Mark, and also remind you to watch out for code in Form.Load which
doesn't work in design mode. I recently drove myself nearly mad by adding a
datagrid to a base form - along with code to not display the datagrid if
there was no data in it.

Strangely enough, there was no data at design-time...

Signature

John Saunders
John.Saunders at SurfControl.com

> I have seen this same problem with VB.NET when I have code in the Form.Load
> or Form.Activiate event in the base class.  If I comment this code out,
[quoted text clipped - 26 lines]
> > file ?
> > >Your Forms-Class MUST BE the first class in the cs-file.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.