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 阅读全文
摘要:
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 阅读全文
摘要:
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 阅读全文
|
Copyright © 2024 KimhillZhang
Powered by .NET 9.0 on Kubernetes |