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 .
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();
}