P
Paul [Paradise Solutions]
Hi all
Was wondering if anyone can confirm if problems can arise when re-using
a variable declared as 'EventArgs' and then, when it comes to raising an
event, using the code like the following to raise multiple events,
without having to dimention separate variables for each one:
Dim e as EventArgs
e= new EventType1Args("Bah")
RaiseEvent EventType1(Me,e)
e = New EventType2Args("humbug")
RaiseEvent Eventtype2(Me,e)
I ask this as I'm having trouble with events that by all purposes should
work, but neither fire, nor generate exceptions when I try to raise them.
Many thanks
Paul
Was wondering if anyone can confirm if problems can arise when re-using
a variable declared as 'EventArgs' and then, when it comes to raising an
event, using the code like the following to raise multiple events,
without having to dimention separate variables for each one:
Dim e as EventArgs
e= new EventType1Args("Bah")
RaiseEvent EventType1(Me,e)
e = New EventType2Args("humbug")
RaiseEvent Eventtype2(Me,e)
I ask this as I'm having trouble with events that by all purposes should
work, but neither fire, nor generate exceptions when I try to raise them.
Many thanks
Paul