Search This Blog

Thursday, December 23, 2010

How to make Windows Form to fit the Desktop screen in vb.net

Dim iWidth As Integer = Screen.PrimaryScreen.Bounds.Width
Dim iHeight As Integer = Screen.PrimaryScreen.Bounds.Height
Me.Width = iWidth
Me.Height = iHeight
Me.Location = New System.Drawing.Point(0, 0)