I need to convert this console code to WinForms
code. This code for HexDump
format of recevieng data. I tried to convert Console.WriteLine(Hex.Dump(example))
to textBox4.Text (Hex.Dump(example))
I don't know is it correct or not, and still struggle with converting Console.OutputEncoding
.
Console.OutputEncoding = Encoding.GetEncoding(1252);
byte[] example = Enumerable.Range(0, 256).Select(x => (byte)x).ToArray();
Console.WriteLine(Hex.Dump(example));
它不是工作代码,不要使用它
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.