Click here to Skip to main content
15,868,016 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I am reading a binary file and one of them is in hexadecimal format in one richtextbox and the other is ascii form in another richtexbox as most of you know in hex editor when you change a code in ascii there is a change on hex form how can I access the other rtb and on which event should I write the codes ? textchanged ? or something else ? I thought to take the index of ascii rtb and character on that index and I stuck in how to reach the other rtb's index and write in hexadecimal form . please help thank you
Posted

Have the value accessible as a property in some object. Two-way-bind that property to both visualisations. Convert to ASCII or hex nowhere but in the UI part.
 
Share this answer
 
The index of the hex pair representing the character at index n is 2*n unless you have introduced separators.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900