WindowState property
Returns or sets the state of the application window. Not available for use with the MapPoint Control. Read/write GeoWindowState.
GeoWindowState | Value | Description |
---|---|---|
geoWindowStateMaximize |
0
|
Window is maximized |
geoWindowStateMinimize |
1
|
Window is minimized |
geoWindowStateNormal |
2
|
Window is restored |
Applies to
Objects: Application
Syntax
object.WindowState
Parameters
Part | Description |
---|---|
object | Required. An expression that returns an Application object. |
Example
Sub MaximizeAppWindow()
Dim objApp As New MapPoint.Application
'Set up the application
objApp.Visible = True
objApp.UserControl = True
'Maximize the application window
objApp.WindowState = geoWindowStateMaximize
End Sub