Quantcast
Channel: VBForums
Viewing all articles
Browse latest Browse all 42461

Sending Data at Com1 Port

$
0
0
Hi Friends, the following code showing the Message at Customer Display System Which is on COM1 Port with Pc.
the problem is that each time i am running the following code .it overwrites in the same line .is there any way to clear the Screen the again Display the Message at Customer Display Form . or any better IDea. let me know please .any help would be highly appreciated .

Code:

private void SerialPortTest_Load(object sender, EventArgs e){
            SerialPort port = new SerialPort();
            port.PortName = "COM1";
            port.Parity = Parity.None;
            port.DataBits = 8;
            port.StopBits = StopBits.One;
            if (port.IsOpen ){
                port.Close();               
                }
         
            port.Open();
            port.WriteLine("WELCOME TO ALHOKAIR IT ");
            port.Close();
            port.Dispose();

        }


Viewing all articles
Browse latest Browse all 42461


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>