Try OpenEdge Now
skip to main content
GUI for .NET Mapping Reference
Mapping Reference Entries : Common public .NET control properties
 

Common public .NET control properties

The following table lists common public .NET control properties.
Table 9. Common public .NET control properties
Property
Description
Anchor
Gets or sets a System.Windows.Forms.AnchorStyles enumeration value that specifies the edges of the container to which a control is bound and determines how a control is resized with its parent container.
Note: This property is mutually exclusive with and manages somewhat different behavior than the Dock property. The last property that you set takes precedence over the other.
Bottom
Gets or sets an ABL INTEGER value that specifies the pixel distance between the bottom edge of the control and the top edge of the client area of its control container.
Bounds
Gets or sets a System.Drawing.Rectangle structure that specifies the location and size of the control or control container within the client area of its control container. For a form, the container is the screen area.
ClientSize
Gets or sets a System.Drawing.Size structure that specifies the client area of the control or control container. The client area is everything within the bounds of the control or control container except non-client elements, such as the title bar of a form.
Controls
Gets the object reference to the System.Windows.Forms.ControlCollection class instance for the form or other control container. Every .NET form or control container has a control collection where you can add or remove all the application controls that the form or control container contains, such as button, text, grid, and menu controls that you create and initialize for the form or control container. For more information on working with control collections, see the section on working with collections in OpenEdge Development: GUI for .NET Programming.
DataBindings
Gets the data bindings for the control. This property returns a ControlBindingsCollection object.
DataSource
Gets or sets the data source that the Microsoft BindingSource object binds to. See also the Handle property.
DataMember
Gets or sets the specific list in the data source to which the Microsoft BindingSource object currently binds to. See also the TableSchema property.
Dock
Gets or sets a System.Windows.Forms.DockStyles enumeration value that specifies which borders of the control are docked to its parent container and determines how a control is resized with its parent.
Note: This property is mutually exclusive with and manages somewhat different behavior than the Anchor property. The last property that you set takes precedence over the other.
Enabled
Gets or sets an ABL LOGICAL value indicating whether the control can respond to user interaction.
Font
Gets or sets the font for the control or control container.
GenerateMember
A design-time property provided for each design component that specifies when the Visual Designer generates a variable data member for a control that you have added to the form.
Handle
Gets or sets the handle to the ABL data source object that the Progress.Data.BindingSource (ProBindingSource) object binds to, which can be a buffer, query, or ProDataSet.
Height
Gets or sets an ABL INTEGER value that specifies the pixel height of the control.
Left
Gets or sets an ABL INTEGER value that specifies the pixel distance between the left edge of the control and the left edge of the client area of its control container.
Location
Gets or sets a System.Drawing.Point structure that specifies the pixel coordinates of the upper-left-hand corner of the control within the client area of its parent control container.
Modifiers
A design-time property provided for each design component that specifies the access mode (PRIVATE or PROTECTED) that the Visual Designer generates for the variable data member associated with a control that you have added to the form.
Name
Gets or sets a name for a .NET control, which is a character string that you can use to identify the control other than by its variable name or type name.
Parent
Gets or sets the object reference to a System.Windows.Forms.Control instance that is the parent form or control container for the control.
Right
Gets or sets an ABL INTEGER value that specifies the pixel distance between the right edge of the control and the left edge of the client area of its control container.
Size
Gets or sets a System.Drawing.Size structure that specifies the width and height of the control or control container in pixels.
TabIndex
Gets or sets an ABL INTEGER value that specifies the zero(0)-based tab order of the control within its control container. TabIndex values do not have to be contiguous. .NET simply observes the INTEGER order of the specified values.
TableSchema
Gets or sets the Progress.Data.TableDesc object to a Progress.Data.BindingSource (ProBindingSource) object that describes the table schema for the data source that the ProBindingSource object binds to.
TabStop
Gets or sets an ABL LOGICAL value indicating if the control participates in the tab order.
Note: This property is always TRUE for an instance of any System.Windows.Form class (including Progress.Windows.Form).
Tag
Gets or sets any data that can be represented as a System.Object value. This property on a .NET control can be used like the PRIVATE-DATA attribute on an ABL widget.
Text
Gets or sets an ABL CHARACTER value that represents a string value displayed for the control or control container, as defined for the particular control or control container.
Top
Gets or sets an ABL INTEGER value that specifies the pixel distance between the top edge of the control and the top edge of the client area of its control container.
Visible
Gets or sets an ABL LOGICAL value that indicates whether the control or control container is visible to the user. The control or control container Show( ) method also sets this property to TRUE.
Width
Gets or sets an ABL INTEGER value that specifies the pixel width of the control.