Blank forms

I am using Visual Basic.NET with Visual Studio 2005 Beta 2 050215.

I am trying to launch forms from other forms in an OOP way but all I'm getting are blank forms.

Something like

Dim cAsNew frmCustomer(Me)

c.Show()

Me.Hide()

only produces a blank form with no title or controls.

Also, another funny behaviour is that when I come to choose a startup form from the project properties I only get one form (whilst I have some 4 others).
Any ideas?

[806 byte] By [JonathanBarbara] at [2007-12-16]
# 1
Can you post the contructors of the frmCustomer form? It appears that you may not be calling InitalizeComponent.
DavidM.Kean at 2007-9-9 > top of Msdn Tech,Windows Forms,Windows Forms General...
# 2
Eureka!

The 'problem' was that I placed a parametrized constructor in my forms.
This of course annulled the free parameterless constructor.

I also forgot to call InitializeComponent from my constructor.

Now I've added a blank constructor and placed a call to InitializeComponent in my forms.

JonathanBarbara at 2007-9-9 > top of Msdn Tech,Windows Forms,Windows Forms General...