2
Answers

simple conversion

Ehab Saleh

Ehab Saleh

15y
4.4k
1
Hi, I am new to C#.. I want to convert a byte or int to string or text. I have a byte with value 130, I just want to show it in a textBox or a label. If I try to do it directly, like: txtDataReceived.Text = myDataByte; then I get the obvious error: (Cannot implicitly convert type 'byte' to 'string') I thought it will be very simple.. any idea how to sort it out. Thanks
Answers (2)