I have a Winform with one input textbox, one button and one output textbox.
Right now my code works the following way:
I click the button and the preset bytes in "string value" will be decoded to readable text and output to the output textbox using "string decoding1".
private void button1_Click(object sender, EventArgs e)
{
string value = decoding1(new byte[]
{
104,
107,
102,
102,
110,
103,
116
});
}
public string decoding1(byte[] byte_0)
{
textBox2.Text = Encoding.UTF8.GetString(decoding2(byte_0));
return Encoding.UTF8.GetString(decoding2(byte_0));
}
But now I want to be able to input these bytes "104, 107,..." into the input textbox so the program decodes and outputs them, otherwise I would have to manually input different bytes into the source code each time and this would be a waste of time for me.
How could I approach that, thanks a lot for your help.