VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



VERY SIMPLE Always on top code

by Ryan33 (5 Submissions)
Category: Coding Standards
Compatability: Visual Basic 5.0
Difficulty: Beginner
Date Added: Wed 3rd February 2021
Rating: (4 Votes)

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

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

Rate VERY SIMPLE Always on top code

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

Download this snippet    Add to My Saved Code

VERY SIMPLE Always on top code Comments

No comments have been posted about VERY SIMPLE Always on top code. Why not be the first to post a comment about VERY SIMPLE Always on top code.

Post your comment

Subject:
Message:
0/1000 characters