ShowGrabHandles
Returns whether the container would like the control to draw selection grab handles, as a Boolean. Read-only.
Syntax: object.ShowGrabHandles
- object
- required An object expression that evaluates to an AmbientProperties object.
Grab handles are the small squares drawn on the corners and edges of a selected control on a designer surface. A simple control can leave the grab handles to the host and ignore this property; a control that paints its own selection feedback (for example, because it occupies its full client area) should draw them when ShowGrabHandles is True. The property is generally only meaningful while UserMode is False.
Example
This example responds to a ShowGrabHandles change and repaints the control to show or hide the handles.
vb
Private Sub UserControl_AmbientChanged(PropertyName As String)
Select Case PropertyName
Case "ShowGrabHandles"
UserControl.Refresh ' repaint to show or hide selection grab handles
End Select
End SubSee Also
- ShowHatching property
- UserMode property
- DisplayAsDefault property