None of these methods use any context in the constructor itself, so I would convert each anonymous method to a βregularβ method in your VB code (which should be simple), and then use something like this in your constructor
AddHandler _twain.TransferImage, AddressOf(TransferImageHandler) AddHandler _twain.ScanningComplete, AddressOf(ScanningCompleteHandler)
Methods must have the same signature as the events that they process.
source share