NeedAnswers
NeedAnswers

Reputation: 1435

Form with OLE control is unable to receive focus properly

I have a form, which has 2 checkboxes, one of them is Ole Control : enter image description here

Now, if I call them twice, there will be 2 instances of the form, the problem is :

enter image description here

EDIT : Here is the OLE control : enter image description here

It's very simple to reproduce the error :

Upvotes: 1

Views: 698

Answers (1)

Albert Català
Albert Català

Reputation: 2044

The OCX on foxpro forms it should be always the last remedy. You are not the only one than can't access foxpro controls after a OCX control has got the focus. These are some solutions I've done throughout my projects:

  • Call a very small form just for readjust the foxpro focus, a form that on activate event there is a thisform.relase. This is called after use OCX. it is common issue to not be able to edit a text field after a OCX focus.
  • use OCX's visible properties

I recommend to use OCX on modal forms, if not, forms can be unaccessible.

Upvotes: 1

Related Questions