Keeps the form on top of ALL windows open on the computer.
Keeps the form on top of ALL windows open on the computer.
API Declarations
Public Declare Function GetMenuItemCount Lib "user32" (ByVal hMenu As Long) As Long
Public Declare Function RemoveMenu Lib "user32" (ByVal hMenu As Long, ByVal nPosition As Long, ByVal wFlags As Long) As Long
Public Declare Function DrawMenuBar Lib "user32" (ByVal hwnd As Long) As Long
Public Const MF_BYPOSITION = &H400&
Public Const MF_DISABLED = &H2&
Rate Keeps the form on top of ALL windows open on the computer.
(1(1 Vote))
Dim hMenu As Long
Dim nCount As Long
hMenu = GetSystemMenu(Frm.hwnd, 0)
nCount = GetMenuItemCount(hMenu)
Call RemoveMenu(hMenu, nCount - 1, MF_DISABLED Or MF_BYPOSITION)
DrawMenuBar Frm.hwnd
End Sub
Private Sub form_load()
DisableX Me
End Sub
'wanna join antbyte software - email me at '[email protected]'
'evry1's accepted to out vb6 software creation team
Keeps the form on top of ALL windows open on the computer. Comments
No comments yet — be the first to post one!
Post a Comment