Event Handing at Runtime

G

Guest

Hello!

I am instantiating webbrowser control objects and runtime and have
successfully been able to have the event handled by a shared delegate. In the
event handling code, I would like to reference the current object (for
example, to get the current object's properties) without using a pre-existing
object on the form (say, Webbrowser1 - again, because these objects are being
created at runtime).

I will attempt to include a code fragment in here soon.

Baically, I want to have all the DocumentCompleted events to share the same
code at runtime, for each instance of the webbrowser control that is created.
I have some code that parses out the http response headers that I would like
to utilize for all runtime webbrowser controls.

Thank you very much in advance.

Andrew Slovak
 
J

Jesse McGrew

In the event handling method, you can use the 'sender' parameter to
determine which control is raising the event.

Jesse
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top