*** BeforeNavigate2 ActiveX Control Event *** LPARAMETERS pdisp, url, flags, targetframename, postdata, headers, cancel If url = "vfps://myform" Cancel = .t. Thisform.LockScreen = .t. This.Visible = .f. Do form MyForm This.Visible = .t. Thisform.LockScreen = .f. EndIf Return DoDefault(pdisp, url, flags, targetframename, postdata, headers, cancel)>I'm using the IE WebBrowser control via the _webbrowser4 class in the FFC. I am using a vfps:// script to open a modeless VFP form, which works well, except the form hosting the browser control reactivates itself afterwards. I want the form I just launched to have focus, not the browser control. I have traced the code in the _webbrowser4 class, but I don't see any explicit Activate statement. Any idea what's going on and how to fix it?
>*** ActiveX Control Event *** >LPARAMETERS pdisp, url, flags, targetframename, postdata, headers, cancel > >If url = "vfps" > Cancel = .t. > Do form MyForm >EndIf > >Return DoDefault(pdisp, url, flags, targetframename, postdata, headers, cancel) >>