would some one mind explaining the difference in what i have shown here.
vb Code:
Public Class MainForm Private Delegate Sub RaiseSomeEventDelegate(ByVal text As String) Private Event SomeEventArghs As RaiseSomeEventDelegate Private Sub EventDelegate() ' Is this event handler now handled on a new thread? RaiseEvent SomeEventArghs("Value") End Sub Private Event SomeEventhandler As EventHandler Private Sub SomeEventMethod() ' Should Me always be passed or is it acceptable ' to pass any value? RaiseEvent SomeEventhandler(Me, EventArgs.Empty) RaiseEvent SomeEventhandler("pass a value", EventArgs.Empty) End Sub ' Is this acceptable or should this be a new delegate? Private Event CustomEvent(ByVal value As String) End Class
Lastly do you guys/gals name your events/delegates using that as a last word?
SomeEventAsEventArghs
SomeDelegateAsDelegate
thanks![]()




Reply With Quote