KimhillZhang  

2012年9月17日

摘要: public class IniFile { [DllImport("kernel32")] private static extern long WritePrivateProfileString(string section, string key, string val, string filePath); [DllImport("kernel32")] private static extern int GetPrivateProfileString(string section, string key, string def, StringBu 阅读全文
posted @ 2012-09-17 22:57 KimhillZhang 阅读(406) 评论(0) 推荐(0) 编辑
 
摘要: public class IniFile { [DllImport("kernel32")] private static extern long WritePrivateProfileString(string section, string key, string val, string filePath); [DllImport("kernel32")] private static extern int GetPrivateProfileString(string section, string key, string def, StringBu 阅读全文
posted @ 2012-09-17 22:56 KimhillZhang 阅读(782) 评论(0) 推荐(0) 编辑
 
摘要: WPF使用多线程访问控件及打开新窗口:private void button1_Click(object sender, RoutedEventArgs e) { Thread thread = new Thread(new ParameterizedThreadStart(AppendData)); thread.SetApartmentState(ApartmentState.STA);//由新线程去开启新窗口时需要设置 thread.IsBackground = true; thread.Start("ABC"); } delegate void AppendText 阅读全文
posted @ 2012-09-17 22:13 KimhillZhang 阅读(337) 评论(0) 推荐(0) 编辑