110,533
社区成员
发帖
与我相关
我的任务
分享
System.Threading.Thread s = new System.Threading.Thread(new System.Threading.ThreadStart(test));
s.SetApartmentState(System.Threading.ApartmentState.STA);
s.Start();
private void button1_Click(object sender, EventArgs e)
{
System.Threading.Thread s = new System.Threading.Thread(new System.Threading.ThreadStart(test));
s.ApartmentState = System.Threading.ApartmentState.STA;
s.Start();
}
public void test()
{
System.Windows.Forms.FolderBrowserDialog dlg = new FolderBrowserDialog();
dlg.ShowDialog();
}