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 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 :
Kamis, 22 Desember 2011
//
Label:
Programming
//
1 komentar
//
1 komentar to "Membuat disable maximize di form"
Laman
x0wn3d
nanda. Diberdayakan oleh Blogger.
Anonim says:
test ory