liptonIcedTea
Well-known member
- Joined
- Jan 18, 2007
- Messages
- 89
- Programming Experience
- 1-3
Hi,
A syntax question...
In my applicaiton, I've noticed that regularly, I have a child control that raises an event, which is handled by a calling class. This calling class, will often raise an event that calls their calling class etc.
I usually add a handler to the calling class's event, to point to a method, which the method then raises an event
Example.
AddHandler childControl.onClicked, addressof OnClicked
...
public sub OnClicked()
raiseevent On_Clicked()
end sub
Being lazy, I hate having to create a new method just to throw an event, I was wondering does VB allow you to create a handler that points straight to raising another event?
Something like this...
Addhandler childControl.onClicked, RaiseEvent On_Clicked()
A syntax question...
In my applicaiton, I've noticed that regularly, I have a child control that raises an event, which is handled by a calling class. This calling class, will often raise an event that calls their calling class etc.
I usually add a handler to the calling class's event, to point to a method, which the method then raises an event
Example.
AddHandler childControl.onClicked, addressof OnClicked
...
public sub OnClicked()
raiseevent On_Clicked()
end sub
Being lazy, I hate having to create a new method just to throw an event, I was wondering does VB allow you to create a handler that points straight to raising another event?
Something like this...
Addhandler childControl.onClicked, RaiseEvent On_Clicked()