RE:Limitar el mouse Parte 4 (y última)
Por último, por ahí también hay un ejemplo para mandar tu aplicación hacia el frente (Top Most) si lo deseas para complementar los dos ejemplos anteriores:
Declare Function SetWindowPos Lib "user32.dll" (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
CONST SWP_DRAWFRAME = &H20
CONST SWP_FRAMECHANGED = &H20
CONST SWP_HIDEWINDOW = &H80
CONST SWP_NOACTIVATE = &H10
CONST SWP_NOCOPYBITS = &H100
CONST SWP_NOMOVE = &H2
CONST SWP_NOSIZE = &H1
CONST SWP_NOREDRAW = &H8
CONST SWP_NOZORDER = &H4
CONST SWP_SHOWWINDOW = &H40
CONST HWND_BOTTOM = 1
CONST HWND_NOTOPMOST = -2
CONST HWND_TOP = 0
CONST HWND_TOPMOST = -1
Private Sub_Load()
SetWindowPos Me.hwnd, HWND_TOPMOST, 0, 0, 0, 0, SWP_SHOWWINDOW + SWP_NOMOVE + SWP_NOSIZE
End Sub
Private Sub_Unload()
SetWindowPos Me.hwnd, HWND_NOTOPMOST, 0, 0, 0, 0, SWP_SHOWWINDOW + SWP_NOMOVE + SWP_NOSIZE
End Sub
..alguna duda, está mi correo. Suerte.