B
Bob
Hi,
I have an app that requires 4 child forms each created on a separate thread.
Each form holds a 3rd Party Phone answering control.
The control will only answer the phone if the form has been displayed.
Instantiating the form is not enough.
The only way I have been able to display the form(s) is myForm.ShowDialog();
myForm.Show() does nothing. (Code snippet below.)
So...
I can't issue a hide instruction as the calling code is waiting for the
dialog to return.
I thought maybe a hide in the form's constructor but no, that's ignored as
well.
Any ideas on how hide these would be appreciated.
thanks
Bob
***In MAIN FORM'S CTOR****
ThreadStart ts1 = new ThreadStart(MakeLine1);
Thread t1 = new Thread(ts1);
t1.SetApartmentState(ApartmentState.STA);
t1.Start();
**************************
private void MakeLine1()
{
frmAnswer f1 = new frmAnswer(1);
f1.ShowDialog();
}
I have an app that requires 4 child forms each created on a separate thread.
Each form holds a 3rd Party Phone answering control.
The control will only answer the phone if the form has been displayed.
Instantiating the form is not enough.
The only way I have been able to display the form(s) is myForm.ShowDialog();
myForm.Show() does nothing. (Code snippet below.)
So...
I can't issue a hide instruction as the calling code is waiting for the
dialog to return.
I thought maybe a hide in the form's constructor but no, that's ignored as
well.
Any ideas on how hide these would be appreciated.
thanks
Bob
***In MAIN FORM'S CTOR****
ThreadStart ts1 = new ThreadStart(MakeLine1);
Thread t1 = new Thread(ts1);
t1.SetApartmentState(ApartmentState.STA);
t1.Start();
**************************
private void MakeLine1()
{
frmAnswer f1 = new frmAnswer(1);
f1.ShowDialog();
}