Question:

Visual Basic Help (Please Look)

by  |  earlier

0 LIKES UnLike

What is the subs name for that minimize button on the forms control box?

 Tags:

   Report

2 ANSWERS


  1. That would be Form_Resize.

    Check for the window state in that sub:

    if me.WindowState = vbMinimized then

    ...

    end if


  2. In VB2008 its called the MinimizeBox and is located in the Properties Pane. In VB6 its called the MinButton and it is also located in the Properties Pane.

    A Minimize button enables users to minimize a form window to an icon. To display a Minimize button, you must also set the form's BorderStyle property to either 1 (Fixed Single), 2 (Sizable), or 3 (Fixed Double).

    VB6:

    Form1.MinButton = True or False

    True = (Default) The form has a Minimize button.

    False = The form doesn't have a Minimize button.

    The settings you specify for the MaxButton, MinButton, BorderStyle, and ControlBox properties aren't reflected in the form's appearance until run time.

    VB2008:

    Me.MinimizeBox = True

    Me.MinimizeBox = False

    : )

Question Stats

Latest activity: earlier.
This question has 2 answers.

BECOME A GUIDE

Share your knowledge and help people by answering questions.