Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8263391
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T04:05:04+00:00 2026-06-08T04:05:04+00:00

I’m trying to create a form by inheriting from another form I have already

  • 0

I’m trying to create a form by inheriting from another form I have already created. The reason for this is that the original form actually has 3 states, and an inheritance structure will make it easier to debug, understand and improve.

The problem is that my Visual Studio 2008 Forms designer doesn’t play nice with this idea. Instead of a form I can design I get this 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: InheritedForm — The base class ‘MyBaseForm’ could not be loaded. Ensure the assembly has been referenced and that all projects have been built.

Basically I can’t see my inherited form in the designer, but the original form works as it should in the designer.

This was very frustrating, so to make sure the problem was not VS2008’s fault I created a fresh clean Forms project (.net 2.0) and created a form which I called Form1 and another form (Form2) that inherited from Form1. This project work just fine. I can see Form1 in the designer and in my Form2 I can see a label I have added to Form1 but cannot move it in Form2 as it belongs to Form 1.

The result from my test proves that my Visual Studio indeed works; just not in my original project that needs it to work. Another thing I tried was to create an inherited From through the Inheritance Picker when you use the VS2008 Guide to create an inherited form. On my test project I can see all the forms I have created, but in my original I can’t choose anything. I tried to browse to the exe file in my bin folder, but it does not give my any forms to choose.

I have also tried rebuilding the project, cleaning the project and restarting VS2008 hoping it was in some weird state, but nothing helps. I will not dismiss the idea that I have some weird project setup that might interfere with the Designer, since the project file is somewhat old and has a lot of files and elements. But due to the error descriptions I got, I find this unlikely (Still investigating this).

I have been scouring the internet to the point where I get the same articles, forums or blogs no matter what I put into the search field in Google or doing link browsing, with no success. Do any of you have an idea or suggestion as to what could cause my problem? Any help, hint or suggestions at this point is highly appreciated.

Thank you in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T04:05:06+00:00Added an answer on June 8, 2026 at 4:05 am

    I figured out the problem. I was working on Hans Passant suggestion when a colleague of mine thought that he wanted a go on my issue and started up the same program on his computer. To our surprise his designer worked on the same project. We both was baffled by it until we looked at our build configurations.

    What I forgot to mention in my question, is that our particular project need to build for either x64 or 86x platforms, due to 3rd party dll’s. This is normally not a problem for the designer when working with normal forms, but when it comes to inherited forms, the designer actually needs to run the base form in order to show the inherited form.

    My colleagues build configuration was set to x86 and mine to x64. We are both running VS2008(86x) versions, which means that the designer is most likely build in a 86x platform. Our conclusion was that if we build the forms to x64, the designer don’t know how to run it. So I tried changing my target platform from 64x to 86x, and after I closed my forms in VS and did a rebuild on the project, the designer worked again.

    To be sure I tried testing it with a new empty clean project. I created 2 forms: one base and one that inherit from base. By default the build configuration is ‘AnyCPU’ and the designer works fine. But when I changed the configuration to ‘x64’ the designer failed again as expected. And switching to ‘x86’ solved the problem as expected.

    So when using inherited forms in a platform specific project, always design in the project platform version equal to your VS2008 platform version (x86 in my case. I don’t actually know if there is a x64 version of visual studio 2008). I still can’t use the Inheritance Picker for some reason in my original project, but inherit in code works like a charm.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

For some reason, after submitting a string like this Jack’s Spindle from a text
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I have a text area in my form which accepts all possible characters from
I'm trying to create an if statement in PHP that prevents a single post
Basically, what I'm trying to create is a page of div tags, each has
this is what i have right now Drawing an RSS feed into the php,
I have this code to decode numeric html entities to the UTF8 equivalent character.
I have a French site that I want to parse, but am running into
I have this code: - (void)parser:(NSXMLParser *)parser foundCDATA:(NSData *)CDATABlock { NSString *someString = [[NSString

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.