2008年10月12日
摘要: 注:文章摘自MSDN DataTable.Compute 方法 计算用来传递筛选条件的当前行上的给定表达式。 public Object Compute ( string expression, string filter ) 参数 expression 要计算的表达式。 filter 要限制在表达式中进行计算的行的筛选器。 返回值 Object,设置为... 阅读全文
posted @ 2008-10-12 01:08 原始部落 阅读(439) 评论(1) 推荐(0)
摘要: using System.Runtime.InteropServices; -------------------------- [DllImport("user32.dll")] public static extern bool FlashWindow( IntPtr hWnd, // handle to window bool bInvert // flash... 阅读全文
posted @ 2008-10-12 01:02 原始部落 阅读(443) 评论(0) 推荐(0)
摘要: public class NumericTextBox : TextBox protected override void OnKeyPress(KeyPressEventArgs e) { if (!char.IsDigit(e.KeyChar)) { e.Handled = true; } if (!Char.IsDigit(e.KeyChar... 阅读全文
posted @ 2008-10-12 00:58 原始部落 阅读(216) 评论(0) 推荐(0)
  2008年7月11日
摘要: using System.Runtime.InteropServices; [DllImport("user32.dll")] public static extern bool MessageBeep(uint uType); MessageBeep(1);//PC喇叭响 阅读全文
posted @ 2008-07-11 17:31 原始部落 阅读(213) 评论(0) 推荐(0)
摘要: public class aaa { private string myLongName; private string myShortName; public aaa(string LongName,string ShortName) { this.myLongName=LongName; this.myShortName=ShortName; } ... 阅读全文
posted @ 2008-07-11 17:29 原始部落 阅读(173) 评论(0) 推荐(0)