I've been puzzling over the best strategy for my application for a while now, but keep on coming up against brick walls, so i thought i'd pick the brains of the people here.
The application has a main form from which subforms are launched (but kept within the boundaries of the main form). The main form should always remain behind the subforms (like the desktop always remains behind the applications in windows) but still respond to click events, and there is the equivalent of the windows taskbar at the bottom of the application to manage all the forms.
The attached picture explains it better. I created the app using MDI, but i had to use a borderless form as the background so it keeps coming to the front. I haven't managed to find a way of keeping one form to the back.
It seems that i can't do it that way, so i was wondering if anyone knew of similar examples, or other ways in which this could be achieved.
but that will also keep the windows above other apps as well.. just so u know
yes it will. but actually what he is trying to do is that when the user tries to click on the background form to open another subform, all the previously opened subforms must not get back to the main form. Zorder wont help in this regard, i think so.
Zorder will not stop u from clicking the form..
it just sets the order of "who" is in front.. BUT I just thought of this.. it will cause a flicker of being brought to the top, then being pushed to the back again.
you could always create your own forms from picture boxes if might take more work but it would work
JPnyc rocks!! (Just ask him!)
If u have your answer please go to the thread tools and click "Mark Thread Resolved"
In MDI pictured above there is frmMain - the MDIForm and frmTimeTable - MDIChild which is the background you can see with two buttons.
i wish to keep frmTimeTable at the back of all the MDIChild forms. Neither zorder, nor setwindowpos can do this. Putting controls on the MDIForm background isn't possible either, so i guess i can't do what i want to do that way. i was wondering if there were any alternative solutions to create the app i want (or solutions to the MDI problem!)