>>>I use _VFP.ActiveForm.ActiveControl.SetFocus, so the current control loses focus to regain it! :-)
>>
>>Great. That did the trick.
>>
>>Funny though that setting the focus to the control causes this behaviour. :-)
>
>One thing I thought after sending the message; I think that if ActiveControl is a grid, then this trick doesn't work. What I do in those cases is to SetFocus to another control (or column of the same grid) and SetFocus back where the user was. Perhaps a little experimentation with that case is in order...
Thanks for the tip.
One thing I found out was that _screen.activeform.activecontrol gives an error if there is no active control. I was able to accomodate for this in my error handler though.
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only