Sorry to bother, but I tried the sleep threading method you provided, and it doesn't work. It also makes it impossible to stop the program without going back to the debug panel and selecting the stop square button.
Here is the code its in. I inserted a single quotation mark to indicate the step following is to implement the wait function, then I tried inserting your bid of code to sleep and set the time for 5000 milliseconds. It doesn't appear to be in the correct location, but as a new person, it seemed a logical point to place it for me. If you have a suggestion, I would sincerely appreciate it. My program was taken off the net and reads a temperature sensor connected to the serial port. The sensor outputs data continuously, and all I do is read it. I just don't need to keep reading it so often - hence the need for a wait / sleep delay between reading and writing to the text box. Thanks for your help!
Private Sub AccessForm(ByVal action As String, ByVal formText As String, ByVal textColor As Color)
Select Case action
' Select an action to perform on the form.
' (Can add more actions as needed.)
Case "AppendToMonitorTextBox"
'implement a wait function
System.Threading.Thread.Sleep(5000)
' Append text to the rtbMonitor textbox using the color for received data.
rtbMonitor.SelectionColor = colorReceive
rtbMonitor.AppendText(formText)
'Return to the default color.
rtbMonitor.SelectionColor = colorTransmit
' Trim the textbox's contents if needed.
If rtbMonitor.TextLength > maximumTextBoxLength Then
TrimTextBoxContents()
End If
Case "DisplayStatus"
' Add text to the rtbStatus textbox using the specified color.
DisplayStatus(formText, textColor)
Case "DisplayCurrentSettings"
' Display the current port settings in the ToolStripStatusLabel.
DisplayCurrentSettings()
Case Else
End Select
End Sub