Click here to Skip to main content
15,881,812 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I have a textbox in my serial terminal with C#. I want to send hexadecimal data writen in the textbox by user

What I have tried:

C#
Private void BtnSendHex_click(object sender,EventArgs e)
{
}
Posted
Updated 13-Sep-21 10:24am
v2
Comments
BillWoodruff 13-Sep-21 23:30pm    
At this time: do you know how to send data to the serial port ? Show your code.

Having a user type in hex data is unusual ... although nothing inherently wrong with that ... consider the user enters numbers which you convert tp hex ?

1 solution

Quote:
How can I send hexadecimal data to serial port in C#?

Exactly the same method you use to send normal text.
Hexadecimal user input is standard text, just a string.
 
Share this answer
 
Comments
CPallini 13-Sep-21 15:16pm    
5.
Patrice T 13-Sep-21 15:19pm    
Thank you.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900