Setting Form position

  • Thread starter Thread starter Tom Sage via .NET 247
  • Start date Start date
T

Tom Sage via .NET 247

(Type your message here)

--------------------------------
From: Tom

VB.NET - trying to place a form in the lower right of the screen. Tried the following code, but it seem to be a little low. Thanks for any ideas.

Me.Top = System.Windows.Forms.Screen.PrimaryScreen.Bounds.Height - Me.Height
Me.Left = System.Windows.Forms.Screen.PrimaryScreen.Bounds.Width - Me.Width
 
Hi,

Dim pt As Point
Dim x As Integer = SystemInformation.WorkingArea.Right -
Me.Width
Dim y As Integer = SystemInformation.WorkingArea.Bottom -
Me.Height

pt = New Point(x, y)
Me.Location = pt

Ken
---------------
 
Back
Top