Inherited form not showing as form in Solution Explorer

B

Bill Gates

I have a couple of forms that are inherited from a base form. The base form
icon shows as a form and I am able to bring up the form designer, however
the inherited forms only show up as *.cs. I.e., code... so I am unable to
open them in designer.

Does anyone know what might be causing this?

(I've seen this problem before but could "fix" it merely by making a minor
change/changeback to the inherited forms class definition.)
 
H

Herfried K. Wagner [MVP]

* "Bill Gates said:
I have a couple of forms that are inherited from a base form. The base form
icon shows as a form and I am able to bring up the form designer, however
the inherited forms only show up as *.cs. I.e., code... so I am unable to
open them in designer.

Does anyone know what might be causing this?

(I've seen this problem before but could "fix" it merely by making a minor
change/changeback to the inherited forms class definition.)

Select the form in the solution explorer and choose "Open with..." from
its context menu. Then select the form editor.
 
S

Sean Connery

It wasn't given as an option.

Herfried K. Wagner said:
Select the form in the solution explorer and choose "Open with..." from
its context menu. Then select the form editor.
 
J

Justin Weinberg

Children of abstract base forms are not designable if that's what you're
trying to do (MustInherit). Unfortunate, but true.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top