VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Positions form in the upper left hand corner of the user's screen

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


Rate Positions form in the upper left hand corner of the user's screen



'when the form loads
Private Sub Form_Load()
  SetWindowPos hwnd, 0, 0, 0, 0, 0, SWP_NOSIZE
End Sub

Download this snippet    Add to My Saved Code

Positions form in the upper left hand corner of the user's screen Comments

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.

Post your comment

Subject:
Message:
0/1000 characters