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. Unable to Call MDI Parent property from MID Client

Unable to Call MDI Parent property from MID Client

Scheduled Pinned Locked Moved C#
jsonhelpquestionworkspace
5 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.
  • M Offline
    M Offline
    Muhammad Nauman Yousuf
    wrote on last edited by
    #1

    Hi, I have a setup for MDI forms. When I open an MDI client , i want the parent MDI opacity to be 50 % and back to 100 % when I close the client form. My problem is that I am unable to access the Parent MDI form. ???????? Looking froward for your response. Thank you! Nauman

    "Mess with the Best, Die like the rest"

    M 1 Reply Last reply
    0
    • M Muhammad Nauman Yousuf

      Hi, I have a setup for MDI forms. When I open an MDI client , i want the parent MDI opacity to be 50 % and back to 100 % when I close the client form. My problem is that I am unable to access the Parent MDI form. ???????? Looking froward for your response. Thank you! Nauman

      "Mess with the Best, Die like the rest"

      M Offline
      M Offline
      Mbah Dhaim
      wrote on last edited by
      #2

      you can set parent form opacity to be 50% after show the child form, and add event FormClosed on your child form, in that event set back parent opacity to 100%. but... when you set parent form opacity this will also affect to your child forms. hope it helps

      dhaim programming is a hobby that make some money as side effect :)

      M 1 Reply Last reply
      0
      • M Mbah Dhaim

        you can set parent form opacity to be 50% after show the child form, and add event FormClosed on your child form, in that event set back parent opacity to 100%. but... when you set parent form opacity this will also affect to your child forms. hope it helps

        dhaim programming is a hobby that make some money as side effect :)

        M Offline
        M Offline
        Muhammad Nauman Yousuf
        wrote on last edited by
        #3

        Dear Dhaim, This is the plan i have in mind, But Wht i am confused is How can I access / change property of MID Parent while i am standing on MDI Chile. Some sort of reference or something ?? Thx, Nauman

        "Mess with the Best, Die like the rest"

        D M 2 Replies Last reply
        0
        • M Muhammad Nauman Yousuf

          Dear Dhaim, This is the plan i have in mind, But Wht i am confused is How can I access / change property of MID Parent while i am standing on MDI Chile. Some sort of reference or something ?? Thx, Nauman

          "Mess with the Best, Die like the rest"

          D Offline
          D Offline
          DaveyM69
          wrote on last edited by
          #4

          Two solutions both from the parent not the child. 1. Subscribe to the child's FormClosing event (in the parent form after creating the instance). 2. Use the parent form's MdiChildActivate[^] event - this is fired every time a child is opened or closed.

          Dave
          BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)
          Expect everything to be hard and then enjoy the things that come easy. (code-frog)

          1 Reply Last reply
          0
          • M Muhammad Nauman Yousuf

            Dear Dhaim, This is the plan i have in mind, But Wht i am confused is How can I access / change property of MID Parent while i am standing on MDI Chile. Some sort of reference or something ?? Thx, Nauman

            "Mess with the Best, Die like the rest"

            M Offline
            M Offline
            Mbah Dhaim
            wrote on last edited by
            #5

            M. Nauman Yousuf wrote:

            But Wht i am confused is How can I access / change property of MID Parent while i am standing on MDI Chile.

            use this.Parent.Parent from your MdiChildForm hope it helps

            dhaim programming is a hobby that make some money as side effect :)

            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