Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27514

[RESOLVED] Where in code to put AddHandler

$
0
0
Hi, I'm using dynamically created "Transmitters" and "Recievers".
The Recievers are created once during the Load-Event of the Starting Form. The Transmitters get created and deleted during runtime.

For the Transmitters I declared an Public "Transmit"-Event which is raised by this object, that way I believe each of the instantiated Transmitters (correct wording??) to be able to raise that Event.
Now I want each of the Recievers react on that event individually. Where shall I put the "AddHandler" Statement?

-At each creating of a new Transmitter for each Reciever (and RemoveHandler when Deleting)??

or is there a better way?


@jmcilhinney: If you have explained that in your blog, I didn't get it.

Viewing all articles
Browse latest Browse all 27514

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>