A
AA
In my application, I create a form A and I pass the form A reference to another form B.
When I try to check the IsHandleCreated property of the form A, it always return false. So, I cannot call the begininvoke of the form A as the IsHandleCreated always return false.
Actually, the form A already show in the screen. WHy the IsHandleCreated is still false? When I call a function in formB, I want formA' s thread to call a function rather than using FormB's thread to call the function in form A.
Eg: It is some part of code in FormB.
if (frmA.IsHandleCreated)
{
frmA.BeginInvoke (new RefreshFunction (frmA.RefreshStrategy), new object[] {strategyid});
}
How to fix it this ptoblem?
Thanks
Anthony
When I try to check the IsHandleCreated property of the form A, it always return false. So, I cannot call the begininvoke of the form A as the IsHandleCreated always return false.
Actually, the form A already show in the screen. WHy the IsHandleCreated is still false? When I call a function in formB, I want formA' s thread to call a function rather than using FormB's thread to call the function in form A.
Eg: It is some part of code in FormB.
if (frmA.IsHandleCreated)
{
frmA.BeginInvoke (new RefreshFunction (frmA.RefreshStrategy), new object[] {strategyid});
}
How to fix it this ptoblem?
Thanks
Anthony