>Hi All:
>
>I'm embarrassed to ask this question:
>
>1. How can I find out which object has focus?
>2. Related to #1: How can I say something like this:
>
>
>If thisform.txtBox1.hasfocus = .t.
> Do Box1Processing
>endif
>
1. thisform.activecontrol - which may be null if none has focus (when clicked on a toolbar button, for instance, or form not active... there are situations like that).
2. you'd need to create that property and assign it .t. in each object's .gotfocus() and .f. in .lostFocus() (which you may still do without polluting all your classes by using bindevent()).
Is there any serious reason why you can't put "Do box1processing" in txtbox1.gotfocus()?