Keeping A Window On Top

You can keep your window on top by using the code listed below. DeclareDeclare Sub 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_NOMOVE = 2Const SWP_NOSIZE = 1Const HWND_TOPMOST = -1Const [...]

Keeping A Form On Top Of A Window

Instead of SetWindowPos, it uses SetWindowWord. This lets you create a floating toolbar that stays above its app's window without staying on top of ALL windows. Very handy for that professional look.Declare Sub SetWindowWord Lib "USER" (ByVal hWnd, ByVal nCmd, ByVal nVal) Const SWW_hParent = (-8) Form_Load of the form that you want to keep [...]