Ummm... All you're doing is writing a string to the console. That's a function call to WriteLine and you pass in what you want to write.
To do the same thing in a TextBox, that's setting the Text property of the TextBox.
textBox4.Text = Hex.Dump(example);