Click to See Complete Forum and Search --> : Keeping an actieX form ontop of Word


Delboy
May 28th, 1999, 06:38 AM
Anyone know how to wihth a vb 5 activex exe... ???

D

Scott Bauer
June 4th, 1999, 02:01 PM
Try This:


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 HWND_TOPMOST = -1
Private Const HWND_NOTOPMOST = -2
Private Const SWP_NOMOVE = 2
Private Const SWP_NOSIZE = 1





SetWindowPos Me.hwnd, HWND_TOPMOST, 0, 0, 0, 0, SWP_NOMOVE Or SWP_NOSIZE