Remove the semi-colons.
There are free on-line converter tools available - e.g.
Telerik[
^] (amongst others)
CommSetting.comm.PhoneConnected -= New EventHandler(comm_PhoneConnected)
CommSetting.comm.MessageReceived -= New MessageReceivedEventHandler(comm_MessageReceived)
A list of
other converters[
^]
Edit - Comments about the converters still apply, but this is why SA's solution 2 is highly relevant.
To remove a handler:
RemoveHandler CommSetting.comm.PhoneConnected, AddressOf comm_PhoneConnected
RemoveHandler CommSetting.comm.MessageReceived, AddressOf comm_MessageReceived