WinStudio
Form objects – Sets or returns the width of a form in character units. Read/write.
Component objects – Returns the width of a component in character units. Read-only.
object.Width
Part |
Description |
object | Required. A reference to a form or component object. |
object.Width = Double
Part |
Description |
object | Required. A reference to a form or component object. |
Double | Required. Form objects only. An expression that evaluates to type Double and sets the width of the form using character units. The value must be greater than 0. |
The return value is type Double and indicates the form or component width in character units.
Sub Main() Application.ShowMessage("The current width of this form = " & _ ThisForm.Width & " units.") ThisForm.Width = 75 Application.ShowMessage("The width of this form now = " & _ ThisForm.Width & " units.") End Sub
Sub Main() Application.ShowMessage("The width of the grid is " & _ ThisForm.Components("grid1").Width & " units.") End Sub