المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Send a byte to Serial port !



C# Programming
08-15-2009, 03:08 PM
Hi.
I'm gonna send this byte "10010101" to serial port.
I know , I have to use SerialPort (http://www.dreamincode.net/forums/showtopic35775.htm)[^ (http://www.dreamincode.net/forums/showtopic35775.htm)] component , but I don't know how I can send a byte to serial port.
Let's write a example :
We have a textbox, the user inserts "10010101" into the textbox and we have to send this byte to serial port.

Could you please guide me ?
Thanks in advance.