Returns a boolean value stating whether the control should show hatching around the control.
Syntax
object.ShowHatching
The ShowHatching property syntax has this part:
Part | Description |
object | An object expression that evaluates to an object in the Applies To list. |
Settings
The possible boolean return values from the ShowHatching property are:
Setting | Description |
True | The control should show hatch marks, if needed. If the container does not implement this ambient property, this will be the default value. |
False | The control should not show hatch marks. |
Remarks
The default behavior for a control is to automatically show hatching when the control is in a container that is in design mode (the control’s run mode) and the control is the one that has focus. However, many containers do not want the control to show hatching, preferring to handle the indication of control focus in another way. The ShowHatching property is how the container notifies the control of who is to display the control focus indications.
Note Visual Basic forms do not implement this ambient property, and therefore the ShowHatching property is set to the default value of True when the control is placed in a Visual Basic form. However, Visual Basic does not expect the control to actually do anything in response to a ShowHatching value of True, therefore it is probably not necessary to actually handle the case when ShowHatching is True.