How do I set my form start at the right bottom site in any monitor resolution?

  • Thread starter Thread starter Eng Teng
  • Start date Start date
E

Eng Teng

How do I set my form start at the right bottom site in any monitor
resolution?


Regards,
Tee
 
Eng,

\\\
Private Sub Form1_Load(ByVal sender As System.Object, _
ByVal ex As System.EventArgs) Handles MyBase.Load
Top = Screen.PrimaryScreen.WorkingArea.Height - Height
Left = Screen.PrimaryScreen.WorkingArea.Width - Width
End Sub
///

Cor
 
Eng Teng said:
How do I set my form start at the right bottom site in any monitor
resolution?

\\\
Dim BottomRight As Point = Screen.PrimaryScreen.WorkingArea.Size
BottomRight.Offset(-Me.Width, -Me.Height)
Me.Location = BottomRight
///
 
Back
Top