S
Steven
Hi Everyone,
I have a problem when I tried to inherit a form from a base form.
I did as follows:
1. Created a based form with 2 private controls and one protected
control. BasedForm is inherited from Windows.Forms.
2. Build the solution
3. Create a derived form by using "Add inherited form..." wizard
from Visual studio. After I clicked OK, Visual studio reported
following errors.
"An error occurred while loading the documnet. Fix the erroe, and then
loading the document again. The error message follows:
The designer could not be shown for tghe file because none of the
classes within it can be designed. The designer inspected the
following classes in the file:
Form1-- The base class 'basedForm' could not be loaded. Ensure the
assembly has been referenced or build if it is part of the project."
All of my code in one project.
Does anyone have idea on how this happens and how to fix, please let
me know.
Thnaks in advance.
Steven
I have a problem when I tried to inherit a form from a base form.
I did as follows:
1. Created a based form with 2 private controls and one protected
control. BasedForm is inherited from Windows.Forms.
2. Build the solution
3. Create a derived form by using "Add inherited form..." wizard
from Visual studio. After I clicked OK, Visual studio reported
following errors.
"An error occurred while loading the documnet. Fix the erroe, and then
loading the document again. The error message follows:
The designer could not be shown for tghe file because none of the
classes within it can be designed. The designer inspected the
following classes in the file:
Form1-- The base class 'basedForm' could not be loaded. Ensure the
assembly has been referenced or build if it is part of the project."
All of my code in one project.
Does anyone have idea on how this happens and how to fix, please let
me know.
Thnaks in advance.
Steven