G
Guest
Hi,
I have done some coding with UI being accessed from different threads before.
But now I stuck. Need your help guys!
My application run not the form but some ApplicationContext class (in
function Main - Application.Run(new MyAppContext())
That class creates 2 children. Model1 and Model2. Model1 being created in
MyAppContext constructor. In a turn frmMain being created in model1's
constructor as well..
So frmMain has no problem at all..
Model2 could be created in 2 different methods of MyAppClass. They being
called from Model1. In such a case (in Model2's constructor) frmSecond being
created and shown.
When it goes to method1 - frmSecond works fine. When it is from method2 -
frmSecond popping up to the screen but white and doesnt show anything.
All the methods which access UI in frmSecond - all are through Invoke thing.
So everything still works (I can see it in debuger). But doesnt show anything
on screen
Please help!
I have done some coding with UI being accessed from different threads before.
But now I stuck. Need your help guys!
My application run not the form but some ApplicationContext class (in
function Main - Application.Run(new MyAppContext())
That class creates 2 children. Model1 and Model2. Model1 being created in
MyAppContext constructor. In a turn frmMain being created in model1's
constructor as well..
So frmMain has no problem at all..
Model2 could be created in 2 different methods of MyAppClass. They being
called from Model1. In such a case (in Model2's constructor) frmSecond being
created and shown.
When it goes to method1 - frmSecond works fine. When it is from method2 -
frmSecond popping up to the screen but white and doesnt show anything.
All the methods which access UI in frmSecond - all are through Invoke thing.
So everything still works (I can see it in debuger). But doesnt show anything
on screen
Please help!