Erchima Gaming Forums

Hack the game and enjoy playing it!


You are not connected. Please login or register


[ASK] How to disable Resize form.exe on VB 6 Portable?  

 

#1SharingCheat

[ASK] How to disable Resize form.exe on VB 6 Portable? Empty14th September 2014, 8:39 am

avatar

VIP
hello Visual Basic master, I want to ask about how to turn off resizing on form.exe in visual basic?

#2Almaftuchin

[ASK] How to disable Resize form.exe on VB 6 Portable? Empty14th September 2014, 8:43 am

Almaftuchin

Administrator
double click on form > copy source code below
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

    'disable MAXIMIZE button
    lStyle = GetWindowLong(Me.hwnd, GWL_STYLE)
    lStyle = lStyle And Not WS_MAXIMIZEBOX
    Call SetWindowLong(Me.hwnd, GWL_STYLE, lStyle)
End Sub
finish

#3SharingCheat

[ASK] How to disable Resize form.exe on VB 6 Portable? Empty14th September 2014, 8:52 am

avatar

VIP
Thank you very much
SOLVED

#4Sponsored content

[ASK] How to disable Resize form.exe on VB 6 Portable? Empty


Please login to download or click here to alternative download link.

Total 0 Like for Sponsored content on this post:

View previous topic View next topic Back to top  Message [Page 1 of 1]

Permissions in this forum:
You cannot reply to topics in this forum