Control - CanFocus Property
CanFocus returns a value indicating whether the control can receive keyboard focus
Member of Control (PRIM_CTRL)
Data Type - Boolean

Details


The CanFocus property returns True if the control can receive focus.
In order for a control to receive input focus

  1. The control must be realized and have a window handle assigned to it
  2. The Visible and Enabled properties must both be set to True for both the control and all its parent controls
  3. The control must be a form or WebPage, or the control's outermost parent must be a Form or WebPage

See also

All Component Classes
Technical Reference