Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
F
Expand Minimize

Visual Basic: MSFlexGrid/MSHFlexGrid Controls

Visual Studio 6.0

FocusRect Property

SeeAlso    Example    Applies To

Returns or sets a value that determines whether the MSHFlexGrid should draw a focus rectangle around the current cell.

Syntax

object.FocusRect [= value]

The FocusRect property syntax has these parts:

Part Description
object An object expression that evaluates to an object in the Applies To list.
value An integer or constant that specifies the focus rectangle style, as described in Settings.

Settings

The settings for value are:

Constant Value Description
flexFocusNone 0 There is no focus rectangle around the current cell.
flexFocusLight 1 There is a light focus rectangle around the current cell. This is the default.
flexFocusHeavy 2 There is a heavy focus rectangle around the current cell.

Remarks

If a focus rectangle is drawn, the current cell is painted in the background color, as in most spreadsheets and grids. Otherwise, the current cell is painted in the selection color, hence you can see which cell is selected without the focus rectangle.

Show:
© 2015 Microsoft