README.md
December 4, 2022 ยท View on GitHub
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 | |
| By | Ryan33 |
| Level | Beginner |
| User Rating | 5.0 (20 globes from 4 users) |
| Compatibility | VB 6.0 |
| Category | Coding Standards |
| World | Visual 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