by John Flaherty (5 Submissions)
Category: Custom Controls/Forms/Menus
Compatability: Visual Basic 5.0
Difficulty: Unknown Difficulty
Originally Published: Mon 27th August 2001
Date Added: Mon 8th February 2021
Rating: (1 Votes)
Positions form in the upper left hand corner of the user's screen
API Declarations
Declare Function SetWindowPos Lib "user32" (ByVal hwnd As Long, _
ByVal hWndInsertAfter As Long, ByVal x As Long, ByVal y As Long, _
ByVal cx As Long, ByVal cy As Long, ByVal wFlags As Long) As Long
'constant used by SetWindowPos function to ensure the window are not resized
Public Const SWP_NOSIZE = &H1
'when the form loads
Private Sub Form_Load()
SetWindowPos hwnd, 0, 0, 0, 0, 0, SWP_NOSIZE
End Sub
No comments have been posted about Positions form in the upper left hand corner of the user's screen. Why not be the first to post a comment about Positions form in the upper left hand corner of the user's screen.