General information
Category:
ActiveX controls in VFP
>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
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