1
Answer

Handling a class member event

Ask a question
Administrator

Administrator

21y
1.5k
1
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)