Inherited form not showing as form in Solution Explorer

  • Thread starter Thread starter Bill Gates
  • Start date Start date
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.)
 
* "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.
 
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.
 
Children of abstract base forms are not designable if that's what you're
trying to do (MustInherit). Unfortunate, but true.
 
Back
Top