try this instead:
vb Code:
Const SWP_NOSIZE As Integer = &H1 Public Declare Function SetWindowPos Lib "user32" (ByVal hwnd As IntPtr, _ ByVal hWndInsertAfter As Integer, ByVal X As Integer, ByVal Y As Integer, ByVal _ cx As Integer, ByVal cy As Integer, ByVal wFlags As Integer) As Integer
vb Code:
Dim xPosition As Integer = 50 Dim yPosition As Integer = 50 SetWindowPos(Me.Handle, -1, xPosition, yPosition, 0, 0, SWP_NOSIZE)




Reply With Quote