12-22-2011, 06:57 PM
ass... ni untuk newbie seperti saya
ok langsung aja
buka vb > view code
copas code berikut
contoh :
ok langsung aja
buka vb > view code
copas code berikut
PHP Code:
Private Const GWL_STYLE = (-16)
Private Const WS_MAXIMIZEBOX = &H10000
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
Private Sub Form_Load()
Dim lStyle As Long
'mendisable maximaze
lStyle = GetWindowLong(Me.hwnd, GWL_STYLE)
lStyle = lStyle And Not WS_MAXIMIZEBOX
Call SetWindowLong(Me.hwnd, GWL_STYLE, lStyle)
End Sub
contoh :



![[Image: banner1.png]](http://thecrowscrew.org/images/banner1.png)




