Thanks for the quick response Herfried,
What I was looking for was a VB equivalent of this C# snippet. VB does
not allow testing the delegate for a handler. It assumes you want to
raise the event.
In hindsight, all it seems to do is not raise the event if no handler is
present. May not be worth the effort...
C#-------
public event QueryShowTheDragCursorEventHandler
QueryShowTheDragCursor;
protected virtual void
OnQueryShowTheDragCursor(QueryShowTheDragCursorEve ntArgs e)
{
//If handler present then raise the event
if(QueryShowTheDragCursor != null)
QueryShowTheDragCursor(this, e);
}
VB-----
Protected Overridable Sub OnQueryShowTheDragCursor(ByVal e As
QueryShowTheDragCursorEventArgs)
If (Not QueryShowTheDragCursor Is Nothing) Then
RaiseEvent QueryShowTheDragCursor(Me, e)
End If
End Sub
Thanks for your time,
Doug
*** Sent via Developersdex
http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!