string MyString =
ASCIIEncoding MyData = new ASCIIEncoding();
byte[] MyBytes = MyData
//MyLength 為字符串的實際長度
int MyLength=
for (int i =
{
//判斷是否為漢字或全腳符號
if (MyBytes[i] ==
{
MyLength++;
}
MyLength++;
}
String MyInfo =
MyInfo +=
MessageBox
From:http://tw.wingwit.com/Article/program/net/201311/11783.html