|
-
Jul 15th, 2010, 08:53 AM
#1
Thread Starter
Addicted Member
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 
-
Jul 15th, 2010, 10:51 AM
#2
Fanatic Member
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)
-
Jul 15th, 2010, 11:22 PM
#3
Thread Starter
Addicted Member
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 
-
Jul 16th, 2010, 01:14 AM
#4
Re: Serial communication with csharp
 Originally Posted by Guvera
I dont want to code in vb. I want to code in csharp.
Then why are you posting in the VB forum?
-
Jul 16th, 2010, 05:46 AM
#5
Re: Serial communication with csharp
-
Jul 16th, 2010, 10:13 AM
#6
Fanatic Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|