Go4Expert

Go4Expert (http://www.go4expert.com/)
-   Visual Basic ( VB ) (http://www.go4expert.com/forums/visual-basic/)
-   -   Using MoveWindow API in Visual Basic (http://www.go4expert.com/forums/using-movewindow-api-visual-basic-t412/)

shabbir 20Aug2005 10:17

Using MoveWindow API in Visual Basic
 
Visual Basic Move Window API definition

Code:

Public Declare Function MoveWindow Lib "user32" Alias "MoveWindow"
(ByVal hwnd As Long,    ' Handle to the Window e.g. Me.Hwnd
ByVal x As Long,        ' New position of the left side of the Window/Form.
ByVal y As Long,        ' New position of the top side of the Window/Form.
ByVal nWidth As Long,    ' New width of the Window
ByVal nHeight As Long,  ' New height of the Window
ByVal bRepaint As Long)  ' Specifies whether Window is to be repainted. True means repainted
As Long                  ' If the function succeeds, the return value is nonzero else zero.

Also you should be careful about the OS version and according to the MSDN it states Minimum operating systems Windows 95, Windows NT 3.1


All times are GMT +5.5. The time now is 14:06.