Using visual studio c# I am receiving serial data and want it to always scroll to new data.
This is my method:
private void serialPort1_DataReceived(object sender, SerialDataReceivedEventArgs e)
{
this.Invoke(new EventHandler(serialPort1_DataReceived));
}
private void serialPort1_DataReceived(object sender, EventArgs e)
{
string dump = serialPort1.ReadLine();
incomingTB.Text = incomingTB.Text + dump;
}
I have tried to use append and can't get it to scroll down. The behavior doesn't change.