Administrator

Administrator

  • Tech Writer
  • 2.2k
  • 1.5m

Handling a class member event

Apr 7 2003 8:49 AM
Hey I have added a VB class as a reference to my c# project. The class I instance is called MessageControl. It inherits the Windows MessageControl class. There is an event called Scanned and it passes the variable scan which is of type SCAN_STRUCT. I need to handle the event in my program , but don't know the c# code to do so. any help is appreciated. this is the line of code n a VB.net project that calles the same classes: Private WithEvents _msgControl As MessageControl = New MessageControl Private Sub _msgControl_Scanned(ByVal scan As SCAN_STRUCT) Handles _msgControl.Scanned TIA

Answers (1)