Hello
In my code I add an event Handler for the state change event to a
connection. Both syntaxes below work
AddHandler cnnLibrary.StateChange, New StateChangeEventHandler _
(AddressOf OnStateChange)
AddHandler cnnLibrary.StateChange, AddressOf OnStateChange
I don't find any difference between the code with or without
New StateChangeEventHandler
Can anyone explain the difference between those two.
The Sub OnStateChange is declared Private in the form class
Thanks