Hi George,
>So it only gets set to active once?
Sorry, I don't understand your question. Here's what's happening .....
The
When event fires immediately before the control receives focus. If you return .F. from this event, the control will NOT receive focus. This essentially disables the control.
What my example solution does is specify your preference (via the form property ListBoxEnabled) for whether or not the control should receive focus.
Hope this helps.
Liam
Liam O'Hagan
MCP VFP Desktop Apps