سلام وقت بخیر ، برای تمرین نخ یک کد ساده نوشتم بنظرتون چرا اجرا نمیشه؟
private void button2_Click(object sender, EventArgs e) {
ThreadStart t1 = new ThreadStart(test);
Thread childThread = new Thread(t1);
childThread.Start();
}
public void test()
{
for (int i = 0; i < 1000; i++)
{
comboBox1.Items.Add("test");
}
}