Results 1 to 6 of 6

Thread: Serial communication with csharp

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jun 2007
    Posts
    241

    Serial communication with csharp

    Hi,

    I am using windows application. I have some parameters to communicate with another combot using RS232. For example i am having input parameters like Id:4545:Floors;2,3:Type:1 like that. This is have an input parameters now i want to send this parameters to combot using port. Is it possible to send the parameters to combot using port? shall we have communicate with them and can we get a response message from them? Is it possible using coding reply me.
    Hope your's reply.

    Thanks
    Failing to plan is Planning to fail

  2. #2
    Fanatic Member
    Join Date
    Sep 2009
    Location
    Lakewood, Colorado
    Posts
    621

    Re: Serial communication with csharp

    Sure. The code is almost identical to that for VB. You can base it on the SerialPort control in the toolbox (System.IO.Ports.SerialPort). You can download VB example code from my homepage (www.hardandsoftware.net).

    Dick
    Richard Grier, Consultant, Hard & Software
    Microsoft MVP (Visual Basic)

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Jun 2007
    Posts
    241

    Thumbs up Re: Serial communication with csharp

    hi,

    Thanks for your reply. I dont want to code in vb. I want to code in csharp. Is any csharp code for this one? Hope your's reply.

    Thanks
    Failing to plan is Planning to fail

  4. #4
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: Serial communication with csharp

    Quote Originally Posted by Guvera View Post
    I dont want to code in vb. I want to code in csharp.
    Then why are you posting in the VB forum?
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  5. #5
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Serial communication with csharp

    Moved To C#

  6. #6
    Fanatic Member
    Join Date
    Sep 2009
    Location
    Lakewood, Colorado
    Posts
    621

    Re: Serial communication with csharp

    C# and VB are (virtually) the same. You can use the VB code as a guide. This is a VB forum.

    Dick
    Richard Grier, Consultant, Hard & Software
    Microsoft MVP (Visual Basic)

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