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