Genicam connection monitoring in

Using the example from;
It was a breeze to implement the connection monitoring for c#, but working on a project I run into a snag.

it seems that this part of the example is where the online code convertors don’t understand whats happening anymore;

disconnectedEvent = DeviceDisconnectedEvent;
I’m guessing it’s some syntactical fluff at fault, but I don’t exactly know what goes wrong, which frustrates my attempts at googling for a solution. Any ideas?

using the c style API of course, that’s usefull info to include :slight_smile:

You need the AddressOf keyword:

VB.NET delegates

You don’t need AddHandler as this is only a delegate and not an event.

1 Like

Thanks, that did the trick!