G
Guest
I have a Form class that can be open by parent Form or by .NET Remoting
command.
When the parent Form opens the Form - All fine !
But when the .NET Remoting command is trying to Show the Form, the Form
stuck !! I tried to change the Remoting delegate invocation to asynchronous
and to synchronous, yet both cause the same Form Show() to stuck.
When I mean stuck, I mean the the Form is shown but non of it controls are
shown, only gray window that does not respond.
Both the parent Form and the Remoting command are invoking the same method
to Showing the Form, here is the code:
public void OpenViewForm(bool topMost)
{
m_Viewer = new ViewerForm();
m_Viewer.TopMost = topMost;
m_Viewer.Show();
m_Viewer.BringToFront();
}
Any idea why the remoting cause this and how can I fix this?
command.
When the parent Form opens the Form - All fine !
But when the .NET Remoting command is trying to Show the Form, the Form
stuck !! I tried to change the Remoting delegate invocation to asynchronous
and to synchronous, yet both cause the same Form Show() to stuck.
When I mean stuck, I mean the the Form is shown but non of it controls are
shown, only gray window that does not respond.
Both the parent Form and the Remoting command are invoking the same method
to Showing the Form, here is the code:
public void OpenViewForm(bool topMost)
{
m_Viewer = new ViewerForm();
m_Viewer.TopMost = topMost;
m_Viewer.Show();
m_Viewer.BringToFront();
}
Any idea why the remoting cause this and how can I fix this?