G
Guest
Hi,
I am trying to use form inheritance in my application, and seem to have run
into some errors. I have a base form called frmBase, and two forms which
inherit from frmBase called frmInitialDisplay and frmSystemStatus. I can
compile and run the application fine, but whenever I try and view
frmInitialDisplay or frmSystemStatus in the designer I get the following
error:
"The designer could not be shown for this file because none of the classes
within it can be designed. The designer inspected the following classes in
the file: frmInitialDisplay --- The base class 'FMSMMI.frmBase' could not be
loaded. ensure the assembly has been referenced and that all projects have
been build"
I have searched a lot on the internet for this problem, and have tried all
the solutions that have been given. Specifically, I have tried rebuilding my
project, I've tried manually deleting all the output files and rebuilding and
I've tried moving all the files to a new project, and nothing has solved the
problem. I've checked that there are no strange characters in any of the
paths to the files (apparently when there are #'s in the path it can do
strange things).
I've tried creating a test project with a base form and an inherited form,
and that seems to work fine - I just can't get it to work in my main project,
even if I move all the code to a new Visual Studio project! Adding another
base form to this project and trying to get a form to inherit from that also
fails, with the same error.
This has definitely been working before in this project, and I think it was
working on Friday - but it now gives the errors detailed above.
I am writing this project in Visual C++, and am using Visual Studio 2005
with SP1.
Does anyone have any ideas why this might be happening, and what I can do
about it? Obviously it's holding up my development quite a bit, because I
can't get access to any of the derived forms to do any work on them!
Regards,
Robin
I am trying to use form inheritance in my application, and seem to have run
into some errors. I have a base form called frmBase, and two forms which
inherit from frmBase called frmInitialDisplay and frmSystemStatus. I can
compile and run the application fine, but whenever I try and view
frmInitialDisplay or frmSystemStatus in the designer I get the following
error:
"The designer could not be shown for this file because none of the classes
within it can be designed. The designer inspected the following classes in
the file: frmInitialDisplay --- The base class 'FMSMMI.frmBase' could not be
loaded. ensure the assembly has been referenced and that all projects have
been build"
I have searched a lot on the internet for this problem, and have tried all
the solutions that have been given. Specifically, I have tried rebuilding my
project, I've tried manually deleting all the output files and rebuilding and
I've tried moving all the files to a new project, and nothing has solved the
problem. I've checked that there are no strange characters in any of the
paths to the files (apparently when there are #'s in the path it can do
strange things).
I've tried creating a test project with a base form and an inherited form,
and that seems to work fine - I just can't get it to work in my main project,
even if I move all the code to a new Visual Studio project! Adding another
base form to this project and trying to get a form to inherit from that also
fails, with the same error.
This has definitely been working before in this project, and I think it was
working on Friday - but it now gives the errors detailed above.
I am writing this project in Visual C++, and am using Visual Studio 2005
with SP1.
Does anyone have any ideas why this might be happening, and what I can do
about it? Obviously it's holding up my development quite a bit, because I
can't get access to any of the derived forms to do any work on them!
Regards,
Robin