c# Programming Glossary: setcontroltext
Cross-thread operation not valid while listening to a COM port [duplicate] http://stackoverflow.com/questions/1377529/cross-thread-operation-not-valid-while-listening-to-a-com-port correct thread. This is a sample of doing so public void SetControlText Control control string text if this.InvokeRequired this.Invoke.. this.InvokeRequired this.Invoke new Action Control string SetControlText new object control text else control.Text text private void.. e try sp.PortName COM3 sp.Open SetControlText Label1 sp.ReadLine catch Exception exception SetControlText..
|