摘要: using System; using System.Collections; using System.ComponentModel; using System.Drawing; using System.Data; namespace MSCL { /// /// 生成条... 阅读全文
posted @ 2012-11-23 14:49 深南大道 阅读(395) 评论(0) 推荐(0)
摘要: 大家在实际工作学习C#的时候,可能会问:为什么我们要为一些已经存在的功能(比如Windows中的一些功能,C++中已经编写好的一些方法)要重新编写代码,C#有没有方法可以直接都用这些原本已经存在的功能呢?答案是肯定的,大家可以通过C#中的DllImport直接调用这些功能。 DllImport所... 阅读全文
posted @ 2012-11-23 14:12 深南大道 阅读(284) 评论(0) 推荐(0)
摘要: protected void Page_Load(object sender, EventArgs e) { creatDataTable(); } protected void Button1_Click(object send... 阅读全文
posted @ 2012-11-23 12:48 深南大道 阅读(210) 评论(0) 推荐(0)
摘要: //方法一 利用DataTable中的Compute方法 例如:1*2-(4/1)+2*4=6 string formulate = string.Format("{0}*{1} - {2}/{3} +{1}*{2}", 1, 2, 4, 1... 阅读全文
posted @ 2012-11-23 09:06 深南大道 阅读(1386) 评论(0) 推荐(0)