Ehab Saleh

Ehab Saleh

  • NA
  • 3
  • 0

simple conversion

Apr 22 2009 5:27 AM
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)