Private Sub Form_Load()
Dim wid As Long
Dim hgt As Long
' Get the screen's size including the task bar area.
wid = GetSystemMetrics(SM_CXSCREEN)
hgt = GetSystemMetrics(SM_CYSCREEN)
' Make the form this size.
Move 0, 0, _
ScaleX(wid, vbPixels, vbTwips), _
ScaleY(hgt, vbPixels, vbTwips)
End Sub
|