Membuat disable maximize di form

ok langsung aja
buka vb > view code

copas code berikut
Private Const GWL_STYLE = (-16)
Private Const 
WS_MAXIMIZEBOX = &H10000
Private Declare Function SetWindowLong Lib "user32" Alias "SetWindowLongA" _
        
(ByVal hwnd As LongByVal nIndex As Long_
        ByVal dwNewLong 
As Long) As Long
Private Declare Function GetWindowLong Lib "user32" Alias "GetWindowLongA" _
        
(ByVal hwnd As LongByVal nIndex As Long) As Long
Private Sub Form_Load()Dim lStyle As Long

    mendisable maximaze
    lStyle 
GetWindowLong(Me.hwndGWL_STYLE)
    
lStyle lStyle And Not WS_MAXIMIZEBOX
    Call SetWindowLong
(Me.hwndGWL_STYLElStyle)End Sub 


contoh :


1 komentar to "Membuat disable maximize di form"

Posting Komentar

Laman

x0wn3d

nanda. Diberdayakan oleh Blogger.

About This Blog

My Blogs

Followers

Web hosting for webmasters