i am writing an application that can convert words to hexdecimal eg i want if i type something like (i will come) in one richtextbox it will convert to its hexdecimal equivalent in another richtextbox
A the previous said, you'll have to run through each character and find its hexadecimal equivalent. So, a simple way to do that would be when they hit a button
C#:
for(int c = 0; c < textBox1.Text.Length; c++)
{
textBox2.Text += convert2hex(textBox1.Text[c]);
}
That will loop through the characters in textBox1 and add them to textBox2. But you'll have to write a function to do the actual converting. convert2hex was made up by myself.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.