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. Modal Dialog Behavior Problem

Modal Dialog Behavior Problem

Scheduled Pinned Locked Moved C#
helptutorialquestion
1 Posts 1 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.
  • S Offline
    S Offline
    selcuks
    wrote on last edited by
    #1

    Hi, I have a few forms in my project and I am opening them one after another like this: Password Entry Form Save File Dialog A selection form with a few buttons on it to select output display. -These 3 windows do not have a parent form and they are not related to each other. -They are not displayed at the same time. As I said I open them in the given order, one after the previous form is closed. -I open all of them using ShowDialog() method. My problem is: I have tried many settings but the last form keeps opening in background and does not have focus. So the user cannot see the window at top. I have tried setting TopMost property, but the result is the same. I am trying to set all these forms to be displayed at top when they are opened. I think I have a problem in understanding the behavior of Windows while handling these Modal dialogs. Can anyone suggest me a link to learn this behavior or an example that may lead to solution of my problem? Thank you,

    Always keep the Murphy Rules in mind!

    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