-3

how do I convert text in textBox1 from Hex to Binary and display it in textBox2

I don't even know where to start

Stephen Kennedy
  • 20,585
  • 22
  • 95
  • 108
  • 3
    Start by watching/reading an introduction to C#, WinForms/WPF and then try to solve your problem, when you encounter specific problems/questions, you can ask on StackOverflow – Biesi Jul 02 '19 at 08:52
  • Try Google always first before coming here! – TaW Jul 02 '19 at 08:56
  • Dupe of [Convert integer to hexadecimal and back again](https://stackoverflow.com/q/1139957/215552) and [Convert integer to binary in C#](https://stackoverflow.com/q/2954962/215552). Try breaking your problems into individual steps and searching for answers to those individual steps. – Heretic Monkey Jul 02 '19 at 14:13

1 Answers1

0

To convert an hex string to a binary string you should do :

string binaryValue = Convert.ToString(Convert.ToInt32(hexValue, 16), 2);

Then for the TextBox there is ton of tutorial to make it.

Guilhem Prev
  • 979
  • 5
  • 17