471,315 Members | 2,193 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,315 software developers and data experts.

Event Handing at Runtime

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
Dec 26 '05 #1
1 1119
In the event handling method, you can use the 'sender' parameter to
determine which control is raising the event.

Jesse

Dec 26 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Nitin | last post: by
2 posts views Thread by Wayne | last post: by
2 posts views Thread by David W. Simmonds | last post: by
1 post views Thread by Aleks A. | last post: by
4 posts views Thread by Dave | last post: by
2 posts views Thread by =?Utf-8?B?ZmFpcnl2b2ljZQ==?= | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.