To call the form is simple:
Dim aform As New ImageForm
aform.Show()
For ImageForm, I did everything on design time. Below are the codes from
"Windows Form Designer generated code":
Dim resources As System.Resources.ResourceManager = New
System.Resources.ResourceManager(GetType(ImageForm))
Me.PictureBox1 = New System.Windows.Forms.PictureBox
Me.SuspendLayout()
'
'PictureBox1
'
Me.PictureBox1.Image =
CType(resources.GetObject("PictureBox1.Image"), System.Drawing.Image)
Me.PictureBox1.Location = New System.Drawing.Point(72, 16)
Me.PictureBox1.Name = "PictureBox1"
Me.PictureBox1.Size = New System.Drawing.Size(75, 75)
Me.PictureBox1.SizeMode =
System.Windows.Forms.PictureBoxSizeMode.AutoSize
Me.PictureBox1.TabIndex = 0
Me.PictureBox1.TabStop = False
'
'ImageForm
'
Me.AutoScaleBaseSize = New System.Drawing.Size(5, 13)
Me.ClientSize = New System.Drawing.Size(226, 113)
Me.ControlBox = False
Me.Controls.Add(Me.PictureBox1)
Me.Cursor = System.Windows.Forms.Cursors.Default
Me.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog
Me.Name = "ImageForm"
Me.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen
Me.Text = "Please Wait ..."
Me.ResumeLayout(False)
Thanks.
Li