I am display data which is coming at COM Port. I am saving that incoming data to a String and then displaying sub string from that string.
I need to save substrings with TimeStamp to a SQL Server Database. What i need to do for it ?
private void DisplayData(MessageType type, string msg)
{
richTextBox1.Invoke(new EventHandler(delegate
{
string substring = string.Empty;
if (msg.Length > 54)
substring = msg.Substring(54, 3);
richTextBox1.AppendText(substring) ;
}));
}
#endregion