Welcome to the Dead Internet Project


Home | Blog | Chat Room | Coding | File Archive | Internet History | Webring | Contact


Advertise here

Stay on Top
VB6

This script will keep a form on top of all other windows.

Go Back

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

Sub StayOnTop(the As Form)
    SetWinOnTop = SetWindowPos(the.hwnd, HWND_TOPMOST, 0, 0, 0, 0, FLAGS)
End Sub

Private Sub Form_Load()
	StayOnTop Me
End Sub
						

© Copyright Dead Internet Online. All Rights Reserved.