>Hi All,
>
>I have a modal form with an ActiveX control on it, this form is modal.
>On this form I also have a button which calls another form using "DO FORM...".
>
>The second form is not modal, but it behaves like a modal form as it was called from a modal form, this is normal. The problem is when the second form is closed
>and you return to the first form, the ActiveX control stops responding to mouse
>input.
>
>SO far I have found 2 ways to stop this:
>
>1. Specify the second form to be modal on its property sheet.
>2. Make the ActiveX control invisible before calling the other form and then making it visible when the other form is closed.
>
>Both of these workarounds are unacceptable as the second form is called from other locations where it can't be modal, and making the control invisible looks very bad.
>
>So far I have found this on the following controls in VFP 6 & 7:
>1. "MSComCtlLib.ListViewCtrl.2"
>2. "MSComCtlLib.Slider.2"
>
>The only remotely similar thing on could find at Microsoft is
this which does not apply at all.
>
>Does anybody have any ideas on this problem?
>
>Thanks,
>
>Chris Ormerod
Activex are always a problem :(
This workaround is not smart but works :
thisform.Hide
thisform.Show(2) && Make this modeless
do form Other name oDummy
oDummy.Hide
oDummy.Show(1) && Make it modal
thisform.Hide
thisform.Show(1) && Back to modal
On a fast computer like mine what happens is almost gone unnoticable.
Cetin