Webbrowser New_Window Event
I am working on a project which adds a web browser to the form dynamically during runtime. I need to have all links displayed on a given webpage to open via that same web browser control. I successfully created the new_window event code to do so...I just can't figure out how to add it to the project for a web browser that gets added during runtime. Any help is greatly appreciated!
Re: Webbrowser New_Window Event
It's the same for any object not assigned to a variable declared WithEvents. You use an AddHandler statement. Just make sure that you use a RemoveHandler statement when you're done with the object.
Re: Webbrowser New_Window Event
Thank you for the quick reply. Unfortunately, I am rather new to programming and have never used an "AddHandler" statement. Could you please give an example of how I may execute this?
Re: Webbrowser New_Window Event
What did you not understand about the many examples you found on the web when you searched?