internal void setMessage(string pMessage) { // InvokeRequired required compares the thread ID of the // calling thread to the thread ID of the creating thread. // If these threads are different, it returns true. if (m_parent.calibrationRecordingStatus.InvokeRequired) { setMessageCallback d = new setMessageCallback(setMessage); m_parent.calibrationRecordingStatus.Invoke(d, new object[] { pMessage }); } else { m_parent.calibrationRecordingStatus.Text = pMessage; ApplicationSpeech.speakText(pMessage); } }