摘要:
if(File.Exists(path)) { StreamReader din = File.OpenText(path); while ((str=din.ReadLine()) != null) { byte[] ansiBytes = ansi.GetBytes(str); byte[] unicodeBytes = Encoding.Convert(ans... 阅读全文
摘要:
首先建立两个C#应用程序项目。 第一个项目包含一个Windows Form(Form1),在Form1上有一个Button和一个TextBox。 第二个项目包含一个Windows Form(Form1),在Form1上有两个Button,分别用来测试第一个应用程序中Button的Click事件和修改第一个应用程序中TextBox的值。 第一个应用程序中Form的代码如下: using S... 阅读全文