Home Dashboard Directory Help
Search

Designing a Form that inherits from an abstract form fails by Jörgen


Status: 

Closed


1
0
Sign in
to vote
Type: Bug
ID: 785985
Opened: 5/1/2013 5:54:56 AM
Access Restriction: Public
0
Workaround(s)
view
0
User(s) can reproduce this bug

Description

In one of my solutions I want to create an abstract base form that all my forms inherit from so that I get some extended functionality on all my form.
If I declare the base form as abstract the designer can't open any forms that inherit from it. If I declare the Base form as non-abstract the windows forms designer works fine.
Details
Sign in to post a comment.
Posted by Microsoft on 5/6/2013 at 11:34 AM
By Design
 
Thank you for your feedback. The issue that you have reported is actually by design. Windows Forms Designer has to instantiate the base class when designing a form:
http://www.pocketsilicon.com/post/Designers-and-Abstract-Classes
Some suggestions on how to deal with this situation are available on forums:
http://www.pocketsilicon.com/post/Using-Visual-Studio-Whidbey-to-Design-Abstract-Forms
http://social.msdn.microsoft.com/Forums/en-US/winformsdesigner/thread/afdfce40-8d7a-4300-bd8d-26e18c320a71
 
Thanks,
The Windows Forms Product Team
Posted by Microsoft on 5/6/2013 at 3:59 AM
Thanks for your feedback.

We are rerouting this issue to the appropriate group within the Visual Studio Product Team for triage and resolution. These specialized experts will follow-up with your issue.
Posted by Jörgen on 5/2/2013 at 1:31 AM
I have attached a Project zip here. It has an Abstract BaseForm and a Form1 that inherits from the baseform.

Open Form1 in the designer and see the error message.
Posted by Microsoft on 5/1/2013 at 10:19 PM
Thank you for submitting feedback on Visual Studio and .NET Framework. In order to efficiently investigate and reproduce this issue, we are requesting additional information outlined below.

Could you please give us a demo project to demonstrate this issue so that we can conduct further research?

Please submit this information to us within 4 business days. We look forward to hearing from you with this information.

Microsoft Visual Studio Connect Support Team
Posted by Microsoft on 5/1/2013 at 6:50 AM
Thank you for your feedback, we are currently reviewing the issue you have submitted. If this issue is urgent, please contact support directly(http://support.microsoft.com)
Sign in to post a workaround.
File Name Submitted By Submitted On File Size  
SolutionFingerprint.33712.html (restricted) 5/1/2013 -
UploadSummary-130501125453.xml (restricted) 5/1/2013 -
VsInfo.xml (restricted) 5/1/2013 -
SolutionFingerprint.27212.html (restricted) 5/1/2013 -
DxDiagOutput.txt (restricted) 5/1/2013 -
AbstractBaseForm.zip 5/2/2013 53 KB