B
Bradley Grant
I am trying to write a program to access a device through
USB port, there is some Visual Basic program examples that
work with the device, but I am trying to write a program
using C#, no luck yet, but the problem may lie with the
following code that was written in Visual Basic, and I was
wondering what the C# equivalent of WithEvents is?
Any help/ideas would be appreciated.
'Declare an object variable to hold the device collection.
'We use WithEvents so that we can utilize the OnChange event.
Private WithEvents Connected As BDAQ.BBDaqEnum
'Declare an object variable to hold a device.
'We use WithEvents so that we can utilize the
OnDataAvailable event
'during timed sampling.
Private WithEvents Device1 As BDAQ.BBDaqDevice
USB port, there is some Visual Basic program examples that
work with the device, but I am trying to write a program
using C#, no luck yet, but the problem may lie with the
following code that was written in Visual Basic, and I was
wondering what the C# equivalent of WithEvents is?
Any help/ideas would be appreciated.
'Declare an object variable to hold the device collection.
'We use WithEvents so that we can utilize the OnChange event.
Private WithEvents Connected As BDAQ.BBDaqEnum
'Declare an object variable to hold a device.
'We use WithEvents so that we can utilize the
OnDataAvailable event
'during timed sampling.
Private WithEvents Device1 As BDAQ.BBDaqDevice