HN-Community
Membuat disable maximize di form - Printable Version

+- HN-Community (https://hacker-newbie.org)
+-- Forum: Miscellaneous (https://hacker-newbie.org/forum-86.html)
+--- Forum: Coding/Programing (https://hacker-newbie.org/forum-19.html)
+---- Forum: Visual Basic (VB) (https://hacker-newbie.org/forum-68.html)
+---- Thread: Membuat disable maximize di form (/thread-11634.html)



Membuat disable maximize di form - Nandha689 - 12-22-2011

ass... ni untuk newbie seperti saya
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: maximaze.jpg] Piktor


RE: Membuat disable maximize di form - ovanIsmycode - 12-22-2011

nice share gan.. Bahagia
nambah ilmu lagi ane.. :mantap:


RE: Membuat disable maximize di form - E1nzte1N - 12-22-2011

asssekkkk dahh... dpet ilmu lg ttg VB.
Bahagia Bahagia

makasih ya bang.. uda share bginian..
try n error doloo..


RE: Membuat disable maximize di form - Nandha689 - 12-22-2011

seeepp silahkan Mantab Mantab Ngakak



RE: Membuat disable maximize di form - UHD - 12-22-2011

kayaknya gk usah pke script bisa deh disable maxzimize Mentok
kalo lagi pke kompi sendiri ane kasih tutornya.. Bahagia


RE: Membuat disable maximize di form - ovanIsmycode - 12-22-2011

nice share gan.. Bahagia
nambah ilmu lagi ane.. :mantap:


RE: Membuat disable maximize di form - Jacket^Cyber - 12-23-2011

good job..
saya seneng nih yang maenan pake coding..
padahal di fungsi properties juga ada..

nice share..


RE: Membuat disable maximize di form - Nandha689 - 12-23-2011

hihihi....
Cuman mw share aja bang yg di codingan na Sinis