|
-
Jun 26th, 2010, 02:08 PM
#1
Thread Starter
Hyperactive Member
[RESOLVED] [:: A new Form with a new Panel and a new Picturebox on it ::]
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|