I am taking substrings in HEXADECIMAL Format and converting them in Decimal Integer.
For displaying, i need to convert intergers to strings.
After getting some correct values I am getting error.
Input String is not in a correct format.
string substring = string.Empty;
if (msg.Length > 57)
substring = msg.Substring(54, 2);
int decValue = int.Parse(substring, System.Globalization.NumberStyles.HexNumber);
string hexValue = decValue.ToString();
richTextBox1.AppendText (hexValue) ;
Edited 16-Jan-13 22:46pm
Try debugging your code to see for what text you get this error.
This will help you correct issues with data (or your code).
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)