VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

TO make the maximum, minimum and close buttons invisible at runtime in any form

Hema  (4 Submissions)   Custom Controls/Forms/Menus   Visual Basic 5.0   Unknown Difficulty   Sat 8th March 2003   Mon 8th February 2021

TO make the maximum, minimum and close buttons invisible at runtime in any form

API Declarations


'add the following code in the declaration section of any form
'this can be used for any form including mdi form

#If Win32 Then

Private Declare Function SetWindowLong Lib "user32" Alias _
"SetWindowLongA" (ByVal hwnd As Long, ByVal nIndex As Long, _
ByVal dwNewLong As Long) As Long
Private Declare Function GetWindowLong Lib "user32" Alias _
"GetWindowLongA" (ByVal hwnd As Long, ByVal nIndex As Long) _
As Long

#Else
Declare Function SetWindowLong Lib "User" (ByVal hwnd As Integer, _
ByVal nIndex As Integer, ByVal dwNewLong As Long) As Long
Declare Function GetWindowLong Lib "User" (ByVal hwnd As Integer, _
ByVal nIndex As Integer) As Long

#End If

Const WS_MINIMIZEBOX = &H20000
Const WS_MAXIMIZEBOX = &H10000
Const GWL_STYLE = (-16)
Const WS_SYSMENU = &H80000
'------------------------

Rate TO make the maximum, minimum and close buttons invisible at runtime in any form (2(2 Vote))
TO make the maximum, minimum and close buttons invisible at runtime in any form.bas

TO make the maximum, minimum and close buttons invisible at runtime in any form Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters