TextBox.InSelection Property
Access Developer Reference |
You can use the InSelection property to determine or specify whether a control on a form in Design view is selected. Read/write Boolean.
Syntax
expression.InSelection
expression A variable that represents a TextBox object.
Remarks
When a control is selected, its sizing handles are visible and it can be resized by the user. More than one control can be selected at a time.
Example
The following function uses the InSelection property to determine whether the strControlName
control on a form is selected.
To test this code, paste the IsControlSelected function code in the Declarations section of a code module in the Northwind sample database, open the Customers form in Design view, and select the CompanyName control. Then enter the following line in the Debug window:
Visual Basic for Applications |
---|
|