Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. dialog access problem

dialog access problem

Scheduled Pinned Locked Moved C#
helpquestion
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    Dan Neely
    wrote on last edited by
    #1

    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?

    P 1 Reply Last reply
    0
    • D Dan Neely

      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?

      P Offline
      P Offline
      Patric_J
      wrote on last edited by
      #2

      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

      D 1 Reply Last reply
      0
      • P Patric_J

        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

        D Offline
        D Offline
        Dan Neely
        wrote on last edited by
        #3

        That's an solution I hadn't thought of. It wouldn't be a problem now, but context sensitive help is in the features wishlist so it could become an issue in the future.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups