WindowState
This property determines whether a form is minimized, maximized or shown at its normal size.
Usage |
frmForm.WindowState = nWindowState nWindowState = frmForm.WindowState |
Parameter |
Value |
Meaning |
nWindowState |
0 |
Normal—the current defined size. |
1 |
Minimize to an icon. |
|
2 |
Maximize to the size specified by MaxHeight and MaxWidth, or to fill the Visual FoxPro window. |
Example |
* This code might be in a form's Resize event (if you're * using formsets, which we don't) IF This.WindowState = 2 && maximized * move things around so they can be seen ThisFormSet.Form2.Left = This.MaxLeft + This.Width ENDIF |
See Also |
BorderStyle, MaxButton, MaxHeight, MaxWidth, MinButton, Zoom Window |