Solved

The base class could not be loaded

Posted on 2004-09-26
6
416 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
  • 2
  • 2
6 Comments
 
LVL 69

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 69

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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Suggested Solutions

Since .Net 2.0, Visual Basic has made it easy to create a splash screen and set it via the "Splash Screen" drop down in the Project Properties.  A splash screen set in this manner is automatically created, displayed and closed by the framework itsel…
1.0 - Introduction Converting Visual Basic 6.0 (VB6) to Visual Basic 2008+ (VB.NET). If ever there was a subject full of murkiness and bad decisions, it is this one!   The first problem seems to be that people considering this task of converting…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

758 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now