CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 14 of 14

Threaded View

  1. #1
    Join Date
    Dec 2008
    Location
    Step Into(F11)
    Posts
    465

    Question SerialPort Issue

    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 Lcd ? .and Formating the size at Customer Display System. 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.ReadExisting();
                port.WriteLine("WELCOME TO ALHOKAIR IT ");
                port.Close();
                port.Dispose();
            }
        }
    Last edited by firoz.raj; December 26th, 2012 at 02:33 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured