Hello,
I want to handle the events of my serial input buffer. I've seen the following article:
http://msdn.microsoft.com/en-us/libr...VS.100%29.aspx
My programming skills are not really that great so I've got a question:
How can I trigger a sub (for example: ArduinoSerialInput) as soon as this event is handled?
I've tried some code but without success, that's why I decided to post on the forum
Some pseudocode:
Code:
I use a piece of hardware to send data to my COM port, but nothing happens.Code:Public Delegate Sub SerialDataReceivedEventHandler(ByVal sender As Object, ByVal e As SerialDataReceivedEventArgs) Dim SerialBufferIn As SerialDataReceivedEventHandler = AddressOf ArduinoSerialInput Public Sub ArduinoSerialInput() MsgBox("test") End Sub
Is this a good approach? Some advice or suggestions please




Reply With Quote