技巧1
AppDomain.CurrentDomain.BaseDirectory相当于App.Path
技巧2
如果需要在字符串末尾增加回车换行,应该是:s = s + "\r\n";而不是: s = s + "\n\r"; 次序将影响s在TextBox中的显示。
技巧3
在C#中,有一些提供静态方法的类,这些类可以不用实例化直接调用其方法,就像全局函数一样。这样的类有:Application、File、MessageBox、DialogResult等等。比如:b=File.Exists(FilePath);
技巧4
C#中没有VB那样的Beep语句。
技巧5
不再是ListBox.Style,而是另外一种Control: CheckedListBox。
技巧6
DataType of DataColumn
DataColumn dcID;
dcID.DataType=System.Type.GetType("System.String");
















