Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Web Browser control - implementing pop up windows
Message
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00887760
Message ID:
00887864
Views:
15
>I have successfully made a functional web browser in VFP8 SP1 using Microsoft's Web Browser control. Now I need to sieze control of any pop up windows, (i.e., force them to never exceed a certain size, not allow more than 1 at a time) but I don't quite understand how to go about this...

Take a look on NewWindow2 web browser event. You can disable the opening of a new window by setting the Cancel parameter to True, and create a new instance of InternetExplorer object with desired window size and pass it back in ppDisp parameter.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform