| StreamReader sr = new StreamReader(myStream , Encoding.Default); StringBuilder strBuilder = new StringBuilder(); while (-1 != sr.Peek()) { strBuilder.Append(sr.ReadLine() "rn"); } strResult = strBuilder.ToString(); } catch(Exception exp) { strResult = "错误:" exp.Message ; }
return strResult ; }
//退出 protected void mnuExit_Click (object sender, System.EventArgs e) { if (MessageBox.Show("真的退出吗?" , "退出系统" , MessageBox.YesNo) == DialogResult.Yes) { this.Close () ;
} }
//主函数 public static void Main(string[] args) { Application.Run(new Form1()); } } }
|
| 共5页: 上一页 [1] [2] [3] [4] 5 下一页 |
评论加载中…