title: How to set encoding result to TextBox
body: <p>How do I set the result of my encoding to a <code>TextBox</code>?</p>
  
  <pre><code>string myString;
  myString = "Hello World";
  byte[] data = Encoding.ASCII.GetBytes(myString);
  textBox1.Text = data.ToString();
  </code></pre>
  
  <p>This displays "System.Byte[]" in the <code>TextBox</code>, but I want to instead show the hex result in the <code>TextBox</code>.</p>