Form Inheritance

  • Thread starter Thread starter Chris Moore
  • Start date Start date
C

Chris Moore

Hi,

I think this is a bug:

Make a form, add some controls. Add MustInherit to the form
declaration and save it.

Try and create an inherited form based on it - the form is not shown
in the list.

Remove MustInherit and it appears in the list.

I came across this because I wanted to create a form in which I have
to populate some functions on the subclassed version. If I create a
Sub with Mustoverride I have to declare the class with MustInherit -
logical. But noone seems to have "told" the picker.

Pain in the BTM.

Chris
 
* Chris Moore said:
I think this is a bug:

No, it's a limitation of the windows forms designer.
Make a form, add some controls. Add MustInherit to the form
declaration and save it.

Try and create an inherited form based on it - the form is not shown
in the list.

Remove MustInherit and it appears in the list.

You must not declare forms as 'MustInherit' if you want to use them with
the Windows Forms designer.
 
Back
Top