"KLAUS HALL" <klaus_hall@get2net.dk> wrote in message
news:6EFA6.217$X22.4588@news.get2net.dk...
> Hvordan sikre jeg at min form altid ligger øverst ?
Du skal have fat i API-funktionen SetWindowPos.
Private 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
Private Const SWP_NOMOVE = &H2
Private Const SWP_NOSIZE = &H1
Private Const HWND_TOPMOST = -1
Når vinduet skal være øverst:
SetWindowPos hWnd, HWND_TOPMOST , 0, 0, 0, 0, SWP_NOMOVE SWP_NOSIZE
(hWnd er fra det vindue, der skal være øverst)
--
Vh Morten