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:
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
I use a piece of hardware to send data to my COM port, but nothing happens.

Is this a good approach? Some advice or suggestions please