Solved

The base class could not be loaded

Posted on 2004-09-26
6
422 Views
Last Modified: 2008-01-09
I have created a simple project with two forms: 'form1' and 'baseform'

When I tried to inherit 'form1' from 'baseform' (Inherits baseform), the IDE displayed the following error message  :
----------------------------------------------------------------------------------------------------------------------------------------------
An error occured while loading the document. Fix the error, and then try loading the document again. The error message follows:

The disigner could bot be show for this file because none of the classes within it can be dsigned. The designer inspected the following classes in the file:

Form1 --- The base class 'Project.baseform' could not be loaded. Ensure the assembly has been referenced or build if it is part of the project.
------------------------------------------------------------------------------------------------------------------------------------------------

However the project still can run properly!

Thanks in advance.

0
Comment
Question by:vbhaha
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
6 Comments
 
LVL 70

Expert Comment

by:Éric Moreau
ID: 12158700
This is because you have some code in one the events raised when a form is loaded (Load, Activate, Paint, ...) in the PARENT class that cannot be evaluated for the designer.

Remove this code from these events and your child will appear correctly.
0
 

Author Comment

by:vbhaha
ID: 12159361
No, both form1 and baseform are simple blank form.

Anyway, I have solved the problem already. The solution is to rebuild the project before the form designer can display the inherited form!
0
 

Author Comment

by:vbhaha
ID: 12159623
Why I couldn't close this question ???
0
 
LVL 70

Expert Comment

by:Éric Moreau
ID: 12159734
You will have to ask the Community support
0
 
LVL 1

Accepted Solution

by:
Computer101 earned 0 total points
ID: 12208289
PAQed, with points refunded (300)

Computer101
E-E Admin
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Microsoft Reports are based on a report definition, which is an XML file that describes data and layout for the report, with a different extension. You can create a client-side report definition language (*.rdlc) file with Visual Studio, and build g…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …

691 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question