Article ID: 815325 - Last Review: January 6, 2006 - Revision: 2.0 The Visual Studio .NET IDE designer fails when implementing an inherited form programmatically in Managed Visual C++ .NET or Visual C++ 2005On This PageSYMPTOMS When
you try to inherit a form
from another form programmatically in the same Managed Visual C++ Windows Form
application, the program builds correctly. However, when you try to view the
inherited form in Design view in the Microsoft Visual Studio .NET or Microsoft Visual Studio 2005 IDE Designer, you may receive the following error message: 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: <Inherited Form Name> --- The base class '<base class
name>' could not be loaded. Ensure the assembly has been referenced or built
if it is part of the project. You may also receive the error message in the Task List window. WORKAROUNDTo work around this problem, create a separate Managed Class
Library that contains the base form class that must be inherited. Build the
class library, and then reference the base form class from the application that
contains the inherited form. To do this, follow these steps:
MORE INFORMATIONSteps to Reproduce the Problem
STATUS Microsoft
has confirmed that this is a problem in the Microsoft products that are listed
at the beginning of this article.
| Article Translations
|
Back to the top
