LucasGills69
New member
- Local time
- Today, 12:16
- Joined
- Apr 25, 2024
- Messages
- 5
I have a form which I use as the main container for my application.
It contains a menu on the left, a header that serves as the title bar, a footer that serves as the status bar and a sub-form that shows the current functionality. When the user selects a menu item on the left, I simply load the corresponding form into the subform. All very nice and working.
Now I would like to give the user the possibility to keep the current form open when he selects another functionality. In other words I'd like to allow him to have multiple "open windows", all the while keeping my main form containing the menu on screen.
So when the user selects another menu item, the open form should be "parked" somewhere before the new form is loaded into the subform.
To do this, I have several hidden subforms on the main form that I use to store all open forms. I simply switch the forms between the visible subform and the hidden ones, depending on what the user selects in the menu.
A bit cumbersome... but you get the idea
The problem is... that it doesn't work as planed. This is because I'm using the subform SourceObject property when I switch the forms and this has the effect of loading another fresh instance of the specified form instead of the one which is already open.
Does anybody know if it's possible to "pass" forms already loaded from one container to another ? I searched for some kind of Set instruction instead of SourceObject -which requires a string- but couldn't find any.
Thanks for your help.
Lucas
It contains a menu on the left, a header that serves as the title bar, a footer that serves as the status bar and a sub-form that shows the current functionality. When the user selects a menu item on the left, I simply load the corresponding form into the subform. All very nice and working.
Now I would like to give the user the possibility to keep the current form open when he selects another functionality. In other words I'd like to allow him to have multiple "open windows", all the while keeping my main form containing the menu on screen.
So when the user selects another menu item, the open form should be "parked" somewhere before the new form is loaded into the subform.
To do this, I have several hidden subforms on the main form that I use to store all open forms. I simply switch the forms between the visible subform and the hidden ones, depending on what the user selects in the menu.
A bit cumbersome... but you get the idea
The problem is... that it doesn't work as planed. This is because I'm using the subform SourceObject property when I switch the forms and this has the effect of loading another fresh instance of the specified form instead of the one which is already open.
Does anybody know if it's possible to "pass" forms already loaded from one container to another ? I searched for some kind of Set instruction instead of SourceObject -which requires a string- but couldn't find any.
Thanks for your help.
Lucas