How do I block the maximize button in the VB window?

Updated on technology 2024-03-01
4 answers
  1. Anonymous users2024-02-06

    I'll write in detail and remember the plus.

    Medium Maximize and minimize button evaporation:

    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

    const gwl_style = (-16)

    Use: private sub form load().

    dim lwnd as long

    lwnd = getwindowlong(, gwl_style)

    lwnd = lwnd and not (ws_minimizebox)

    lwnd = lwnd and not (ws_maximizebox)

    lwnd = setwindowlong(, gwl_style, lwnd)

    end sub

  2. Anonymous users2024-02-05

    In the form properties, find the borderstyle property and change it to 1-fixed, and you only have a close button on the form.

  3. Anonymous users2024-02-04

    In the net, there is a property maximizebox, and you can set the empty property to false.

    Minimized windows can also be screened off.

  4. Anonymous users2024-02-03

    1. Open the VB software on the computer, and when you click twice in a row, the window will be maximized.

    2. In the upper right corner of the interface of the VB program window, the menu bar displays [Minimize Button, Restore Button, Close Button], click this button to minimize, restore, and close the form.

    3. If you click the [Restore Button] option button in the middle, it can be set as the original interface of VB, and it is the regular interface.

    4. The interface is restored to the original interface, and the window is the default size, as shown in the figure below.

    5. The window can be adjusted by stretching to make the window easy to see.

Related questions
12 answers2024-03-01

Well, the landlord's problem is good. I think the key lies in the concept of infinity! >>>More

30 answers2024-03-01

Power on and press del to enter the BIOS

1 Select Advanced BIOS Features, find Full Screen Logo Show, set it to Disabied, and press F10 to exit. >>>More

8 answers2024-03-01

Hello, the following is from experience, you can take a look: >>>More

24 answers2024-03-01

Haha, it's terrible, you use Kaspersky, it's okay, Kaba kills poison cows!!

12 answers2024-03-01

First of all, which Apple machine do you see that uses this u? >>>More