Finally got some code, that should work for VB3, on keeping my program on top.....however i get a duplicate procedure in setwindowpos....tell me if you can notice why.

In the (general)(declarations) section, put


Declare Function SetWindowPos Lib "user" (ByVal hWnd as Integer, ByVal hWndInsertAfter as Integer, ByVal X as Integer, ByVal Y as Integer, ByVal cx as Integer, ByVal cy as Integer, ByVal wFlags as Integer)

Const SWP_NOACTIVATE = &H10
Const SWP_SHOWWINDOW = &H40
Const HWND_TOPMOST = -1


Const HWND_NOTOPMOST = -2

On form load

SetWindowPos me.hWnd, HWND_TOPMOST, 0, 0, 0, 0, SWP_NOACTIVATE Or SWP_SHOWWINDOW