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. Problems in handling windows forms

Problems in handling windows forms

Scheduled Pinned Locked Moved C#
helpcsharpwinformstutorial
4 Posts 3 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.
  • A Offline
    A Offline
    Arun kumar Gautam
    wrote on last edited by
    #1

    i have some problem in handling mdi windows form in my application i want that when open a child form after the clicking of menuitem in mdiparent form, then after that mdiparent form will be disabled and when i will close the child form the mdiparent form will be enabled again. during the disability uer can not close the parent form , user must hav to close the child form firt thn after user may can close the parent form. can any help me in it how to do it in c#...........

    L A 3 Replies Last reply
    0
    • A Arun kumar Gautam

      i have some problem in handling mdi windows form in my application i want that when open a child form after the clicking of menuitem in mdiparent form, then after that mdiparent form will be disabled and when i will close the child form the mdiparent form will be enabled again. during the disability uer can not close the parent form , user must hav to close the child form firt thn after user may can close the parent form. can any help me in it how to do it in c#...........

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      Arun kumar Gautam wrote:

      can any help me in it how to do it in c#.

      You just need to keep some state flags to tell you whether the form can be closed or not.

      Use the best guess

      1 Reply Last reply
      0
      • A Arun kumar Gautam

        i have some problem in handling mdi windows form in my application i want that when open a child form after the clicking of menuitem in mdiparent form, then after that mdiparent form will be disabled and when i will close the child form the mdiparent form will be enabled again. during the disability uer can not close the parent form , user must hav to close the child form firt thn after user may can close the parent form. can any help me in it how to do it in c#...........

        A Offline
        A Offline
        Anna King
        wrote on last edited by
        #3

        It is very hard to understand the issue that you are facing using mdi windows form. Can you please rewrite your problem using proper language without any spelling errors?

        1 Reply Last reply
        0
        • A Arun kumar Gautam

          i have some problem in handling mdi windows form in my application i want that when open a child form after the clicking of menuitem in mdiparent form, then after that mdiparent form will be disabled and when i will close the child form the mdiparent form will be enabled again. during the disability uer can not close the parent form , user must hav to close the child form firt thn after user may can close the parent form. can any help me in it how to do it in c#...........

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          The behaviour you describe is default for a modal dialog. A MDI-document is exactly that, a document-interface - not a dialog. Use a normal form, call the ShowDialog method. Done.

          Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^]

          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