README.md

December 4, 2022 ยท View on GitHub

VERY SIMPLE Always on top code!

Description

This is the simplest code ever for always on top, if you find anything simpler (which i doubt) let me know!

More Info

Submitted On
ByRyan33
LevelBeginner
User Rating5.0 (20 globes from 4 users)
CompatibilityVB 6.0
CategoryCoding Standards
WorldVisual Basic
Archive File

API Declarations

' Declarations for always on top
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

Source Code

Private Sub Form_Load()
  SetWindowPos Me.hwnd, -1, 0, 0, 0, 0, 3
End Sub