ArcObjects Library Reference  (Framework)    

IWindowPosition Example

The following code in the ThisDocument code window in the Normal template forces the application window to always open with the specified size and position.

[Visual Basic 6.0]
Private Function MxDocument_NewDocument() As Boolean Dim pWindPos As IWindowPosition Set pWindPos = Application pWindPos.Move 10, 10, 600, 500 End Function Private Function MxDocument_OpenDocument() As Boolean Dim pWindPos As IWindowPosition Set pWindPos = Application pWindPos.Move 10, 10, 600, 500 End Function

[Visual Basic .NET, C#, C++]
No example is available for Visual Basic .NET, C#, or C++. To view a Visual Basic 6.0 example, click the Language Filter button Language Filter in the upper-left corner of the page.