Hello all,

As I am very new to VB 2010, I am facing lot of problems.

I want to open a new form with a new panel and a new picture box on it when clicked a button.

I wrote:

Dim MyForm As New Form()
Dim MyPanel As New Panel()
Dim MyPicBox As New PictureBox()

MyForm.Width = 680
MyForm.Height = 480
MyForm.Text = "Lesson # 1"
'MyForm.BackgroundImage = My.Resources.Background
MyForm.FormBorderStyle = Nothing

MyPanel.Width = 649
MyPanel.Height = 373
MyPanel.Location = New Point(19, 55)
MyPanel.BackColor = Color.White

MyForm.Show()

Form is opening when I clicked on the button but it is completely blank. No panel is shown on it.

can anyone please help?

Thanks in advance.

Trusted