This document is archived and information here might be outdated.  Recommended version.


ICustomizeDialog2.SetWindowPosition Method (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (Controls)  

ICustomizeDialog2.SetWindowPosition Method

Positions the customize dialog at the given screen co-ordinates.

[Visual Basic .NET]
Public Sub SetWindowPosition ( _
    ByVal Left As Integer, _
    ByVal Top As Integer _
)
[C#]
public void SetWindowPosition (
    int Left,
    int Top
);
[C++]
HRESULT SetWindowPosition(
  long Left,
  long Top
);
[C++]

Parameters Left [in] Left is a parameter of type long Top [in] Top is a parameter of type long

Product Availability

Available with ArcGIS Engine.

Description

Sets the position the CustomizeDialog will display itself on the screen each time the ICustomizeDialog::StartDialog method is used. The position is in device co-ordinates (pixels) relative to the top left (0,0) of the screen display.

If a position is supplied that will take the CustomizeDialog off the screen display such as (-20,-20) the window will always display so it's visible. In this case at the top left with a position of (0,0).

See Also

ICustomizeDialog2 Interface