Puts a form on top of other forms and vice versa...
Puts a form on top of other forms and vice versa...
API Declarations
Public Const HWND_TOPMOST = -1
Public Const HWND_NOTOPMOST = -2
Public Const SWP_NOMOVE = &H2
Public Const SWP_NOSIZE = &H1
Public Const FLAGS = SWP_NOMOVE Or SWP_NOSIZE
Rate Puts a form on top of other forms and vice versa...
(1(1 Vote))
SetWindowPos Me.hWnd, HWND_TOPMOST, 0&, 0&, 0&, 0&, FLAGS
'makes window not on top of other windows
SetWindowPos Me.hWnd, HWND_NOTOPMOST, 0&, 0&, 0&, 0&, FLAGS
'something funny to do(first look at it then try it!!!):
'Me.WindowState = 2
'Me.BorderStyle = 0
'do
' SetWindowPos Me.hWnd, HWND_TOPMOST, 0&, 0&, 0&, 0&, FLAGS
'loop while 0=0
Puts a form on top of other forms and vice versa... Comments
No comments yet — be the first to post one!
Post a Comment