try
{
int iTemp = 0;
string sTemp = "";
string strHex;
foreach (char c in txtKeyA.Text)
{
iTemp = c;
strHex = String.Format("{0:x2}", (uint)System.Convert.ToUInt32(iTemp.ToString()));
// MessageBox.Show(strHex);
sTemp = sTemp + strHex;
}
txtKeyA.Text = sTemp;
this.btnToHex.Enabled = false;
this.btnToAscii.Enabled = true;
}
catch(Exception eE)
{
// MessageBox.Show(eE.ToString());
MessageBox.Show("Failed to convert!!! Please check your input format!");
}
Wednesday, May 23, 2007
Subscribe to:
Post Comments (Atom)
Blog Archive
-
▼
2007
(13)
-
▼
May
(12)
- MessageBox with more options in C#
- Error Report Example in C#
- Error Report Example in C++
- Ascii to Hex in C#
- Hex to Ascii Conversion in C#
- C# File Open, Save in .Net Framework and Compact F...
- C++ File Open, save in .Net Compact Framework
- How to do a folder browing in .Net Compact Framework?
- Folder Browsing --- Easy way 2
- Folder Browsing --- Easy way 1
- Microsoft way to do folder browsing
- How to do a folder browsing in C#?
-
▼
May
(12)
No comments:
Post a Comment