dialog access problem
-
I have an app with 3 major dialogs. The parent dialog, a modal work dialog, and a help dialog. Since I only want a single copy of help open at a time I had the work dialog call a method of the parent which only created a new help dialog if there wasn't already one open. This works fine if the help button in the work dialog is clicked and the help dialog isn't open. In that case Help's freely available and the user can switch between the help dialog and the work dialog at will. The problem is if the help dialog is first opened in the parent it's inaccessable from the work dialog. The only workaround I can think of is to have the work dialog first kill the help one, and then reopen it but that's a kluge and looses the users place. Is there a more graceful way to do it?
-
I have an app with 3 major dialogs. The parent dialog, a modal work dialog, and a help dialog. Since I only want a single copy of help open at a time I had the work dialog call a method of the parent which only created a new help dialog if there wasn't already one open. This works fine if the help button in the work dialog is clicked and the help dialog isn't open. In that case Help's freely available and the user can switch between the help dialog and the work dialog at will. The problem is if the help dialog is first opened in the parent it's inaccessable from the work dialog. The only workaround I can think of is to have the work dialog first kill the help one, and then reopen it but that's a kluge and looses the users place. Is there a more graceful way to do it?
Interesting problem, how do you unlock a modeless dialog locked by a modal dialog? Sorry to say, I have no good answer and looking at the lack of responses to your question the community seams to have problems with it also. Can't you make the help dialog as a standalone application which you kill when the parent dialog is shutdown? Only problem I see with this solution is if you need to communicate with the help application, which is more difficult than communication within an application, so then it might not be worth it. Here's a link how to make a single instance application: www.codeproject.com/csharp/singleinstance.asp /Patric My C# blog: C# Coach
-
Interesting problem, how do you unlock a modeless dialog locked by a modal dialog? Sorry to say, I have no good answer and looking at the lack of responses to your question the community seams to have problems with it also. Can't you make the help dialog as a standalone application which you kill when the parent dialog is shutdown? Only problem I see with this solution is if you need to communicate with the help application, which is more difficult than communication within an application, so then it might not be worth it. Here's a link how to make a single instance application: www.codeproject.com/csharp/singleinstance.asp /Patric My C# blog: C# Coach