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.Resource s.ResourceManag er = New
System.Resource s.ResourceManag er(GetType(Imag eForm))
Me.PictureBox1 = New System.Windows. Forms.PictureBo x
Me.SuspendLayou t()
'
'PictureBox1
'
Me.PictureBox1. Image =
CType(resources .GetObject("Pic tureBox1.Image" ), System.Drawing. Image)
Me.PictureBox1. Location = New System.Drawing. Point(72, 16)
Me.PictureBox1. Name = "PictureBox 1"
Me.PictureBox1. Size = New System.Drawing. Size(75, 75)
Me.PictureBox1. SizeMode =
System.Windows. Forms.PictureBo xSizeMode.AutoS ize
Me.PictureBox1. TabIndex = 0
Me.PictureBox1. TabStop = False
'
'ImageForm
'
Me.AutoScaleBas eSize = 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.D efault
Me.FormBorderSt yle = System.Windows. Forms.FormBorde rStyle.FixedDia log
Me.Name = "ImageForm"
Me.StartPositio n = System.Windows. Forms.FormStart Position.Center Screen
Me.Text = "Please Wait ..."
Me.ResumeLayout (False)
Thanks.
Li
"Cor Ligthert [MVP]" wrote:
Li
Can you show some code because there are endles methods to do what you want
to achieve.
Cor