VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Make any VB form stay always on top of every other Window form.

nofx  (8 Submissions)   Custom Controls/Forms/Menus   Visual Basic 4.0 (32-bit)   Unknown Difficulty   Thu 4th March 1999   Mon 8th February 2021

Make any VB form stay always on top of every other Window form.

API Declarations


' CaptiveX TM. '
' Writen by nofx (op-ivy) '
'http://www.sharpnet.net/~nofx/'
'or visit us on EFNET #captivex'
' P.S. '
' Have Fun '


#If Win32 Then
Public Const HWND_TOPMOST& = -1
#Else
Public Const HWND_TOPMOST& = -1
#End If 'WIN32

#If Win32 Then
Const SWP_NOMOVE& = &H2
Const SWP_NOSIZE& = &H1
#Else
Const SWP_NOMOVE& = &H2
Const SWP_NOSIZE& = &H1
#End If 'WIN32

#If Win32 Then
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)
#Else
Declare 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)
#End If 'WIN32

Rate Make any VB form stay always on top of every other Window form. (1(1 Vote))
Make any VB form stay always on top of every other Window form..bas

Make any VB form stay always on top of every other Window form. Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters