W
What-a-Tool
Decided to try and do it this way just to see if I could. My form appears
with a rectangular hole in the center the size of my label. can anyone tell
me why, and if it can be made visible?
Thanks, Sean
Sub Main()
'Create and format splash form
Dim frmSplash As New Form()
Dim SplashRect As New Rectangle(0, 0, 360, 252)
Dim lblSplashIntro As New Label()
frmSplash.DesktopBounds = SplashRect
frmSplash.FormBorderStyle = FormBorderStyle.None
frmSplash.BackColor = System.Drawing.Color.LightSteelBlue
frmSplash.StartPosition = FormStartPosition.CenterScreen
frmSplash.TopMost = True
lblSplashIntro.Font = New System.Drawing.Font _
("Tahoma", 15.75!, _
System.Drawing.FontStyle.Regular, _
System.Drawing.GraphicsUnit.Point, CType(0, Byte))
lblSplashIntro.Text = "Hey, where am I !!"
lblSplashIntro.Location = New Point(50, 100)
lblSplashIntro.Size = New Size(260, 50)
lblSplashIntro.BackColor = System.Drawing.Color.LightSteelBlue
lblSplashIntro.Enabled = True
lblSplashIntro.Visible = True
frmSplash.Controls.Add(lblSplashIntro)
frmSplash.Show()
'Sleeps for 3 seconds to display splash form
Thread.CurrentThread.Sleep(3000)
frmSplash.Close()
End Sub
with a rectangular hole in the center the size of my label. can anyone tell
me why, and if it can be made visible?
Thanks, Sean
Sub Main()
'Create and format splash form
Dim frmSplash As New Form()
Dim SplashRect As New Rectangle(0, 0, 360, 252)
Dim lblSplashIntro As New Label()
frmSplash.DesktopBounds = SplashRect
frmSplash.FormBorderStyle = FormBorderStyle.None
frmSplash.BackColor = System.Drawing.Color.LightSteelBlue
frmSplash.StartPosition = FormStartPosition.CenterScreen
frmSplash.TopMost = True
lblSplashIntro.Font = New System.Drawing.Font _
("Tahoma", 15.75!, _
System.Drawing.FontStyle.Regular, _
System.Drawing.GraphicsUnit.Point, CType(0, Byte))
lblSplashIntro.Text = "Hey, where am I !!"
lblSplashIntro.Location = New Point(50, 100)
lblSplashIntro.Size = New Size(260, 50)
lblSplashIntro.BackColor = System.Drawing.Color.LightSteelBlue
lblSplashIntro.Enabled = True
lblSplashIntro.Visible = True
frmSplash.Controls.Add(lblSplashIntro)
frmSplash.Show()
'Sleeps for 3 seconds to display splash form
Thread.CurrentThread.Sleep(3000)
frmSplash.Close()
End Sub