views:

86

answers:

1

Hello

I'm using C#.Net and have a base form that is inherited by several forms.

Until yesterday, when the child (derived) form was opened in the designer the base forms controls would be displayed and shown as locked.

Now, however the form is simply blank. None of the base forms controls are visible in the designer. Everything compiles, builds and runs OK.

Has anyone else seen this?

I've tried placing a call to the base forms InitializeComponent method in the derived forms OnLoad method but to no avail.

+2  A: 

Found solution in a SO post I did not see before posting the question.

Essentially, I needed to place a call to InitializeComponent() in the private no argument constructor of my base form.

    private ItemSelectForm()
    {
        InitializeComponent();
    }

The base form then needs to be rebuilt.

Kildareflare