Visual Basic: MSFlexGrid/MSHFlexGrid Controls
Returns or sets a value that determines whether the MSHFlexGrid should draw a focus rectangle around the current cell.
object.FocusRect [= value]
The FocusRect property syntax has these parts:
|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.|
The settings for value are:
|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.|
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.