I am writing a class library that uses some third party COM components as well as serial comms
I need to know how to access the events associated with these controls - for example:
I have successfully set up a serial comms object using by referencing Microsoft’s comm control 6 in my .net project i.e
MSCommLib.MSComm port = new MSCommLib.MSComm();
I can then successfully open close the port and set all the relevant properties
port.CommPort = 1;
port.PortOpen = true;
My problem is how do I access the port.OnComm() event. I have exactly the same problem with some third party controls that work with a specific piece of hardware I can set the properties but I'm not sure how to get at the events.
Any help would be apreciated.