AdvancedHMI Software
General Category => Open Discussion => Topic started by: Holmux on December 17, 2019, 11:06:46 AM
-
Hi
I have a setup where I have a main page with different Mediforms on top, I would normally place the ScreenCleanButton on the mediform it self, if I do this the cleaning screen open and closes and I still have the mediform open.
But I would like to move the Cleaning button to the main page, but when I do this the mediform that was open, will closes together with the cleaning screen.
Is there a quick way of keeping the mediform open or call it again after the cleaning screen closes ?
Regards
/Holmux
-
What is a Mediform?
If you can post a screenshot or provide more details then it might help more.
-
Sorry
I was very low on sugar last night when I wrote this :)
What I was trying to explain is my main form is set as: IsMidiContainer
the main screen has my menu buttons at the bottom and the rest of my
form's are shorter and lay on top of the main page.
If I use the sceenCleanButton on one of the forms, it works OK and leaves my form open,
but if I include the screenCleanButton in my menu it clears my form and I only have the main
page open when the cleanscreen closes.
I had a look at the code for the ScreenCleanButton, but I can't figure out why it also closes my
form.
/Holmux
-
If I simply follow the steps from here:
https://docs.microsoft.com/en-us/dotnet/framework/winforms/advanced/how-to-create-mdi-child-forms
and get it to look as in the attached picture, then add a ScreenCleanButton to each form.
Once the "Page 2" form is open, it doesn't close regardless of which ScreenCleanButton I press.