|
Hi,
In my windows application having two win forms and one class file. In class file i created form2 object in seperate thread like
public Class1()
{
System.Threading.Thread t1 = new System.Threading.Thread(new System.Threading.ThreadStart(test));
t1.Start();
}
private void test()
{
Form2 f2 = new Form2();
f2.ShowDialog(WindowsApplication2.Form1.ActiveForm);
}
now i taken this Class1 object in form1 button click event like
Class1 c1 = new Class1();
Now the problem is the form2 is not acting as a modal dialog insted of that it is giving access to click the button again, how to solve that.
Let me know the answer if any one faced this type of situation.
Thanks,
eshwar_gp
|
|
|
|
|
|
|
|