GetBounds Method
Returns the left position, top position, width, and height of the dialog
box.
object.GetBounds
left, top, width, height
Arguments
|
object |
|
Required. A
variable containing a dialog object created by calling CreateObject or
new ActiveXControl. |
|
left |
|
Required. Variable that has the left position
of the dialog box placed into it. |
|
top |
|
Required. Variable that has the top position
of the dialog box placed into it. |
|
width |
|
Required. Variable that has the width of
the dialog box placed into it. |
|
height |
|
Required. Variable that has the height of
the dialog box placed into it. |
Remarks
None.
Example
Dim Left, Top, Width, Height
Dialog.GetBounds Left, Top, Width, Height
MsgBox "The height of the dialog box is " & Height
|