Denaes Posted March 2, 2004 Posted March 2, 2004 This is a little mini tutorial for splitting the screen up while still alowing anchored (not docked) controls by using docked panels instead. I hadn't really seen any tutorials on this, but a few questions. I made my two screens by laying down two panel controls onto the Form. I placed the "Left Screen" controls in the left panel and the "Right Screen controls in the right panel. Then I threw down a Splitter which was docked to the left. I docked my left panel to the left as well. This placed the entire panel to the left of the splitter control. As Divil said in a post, a common problem is the Z-Ordering. I had to bring the two panels to the front by right clicking on them and choosing "Bring to Front". The right panel I docked to full screen. Now this allows me to have two screens on my form (right and left). The controls inside of the form, I can Anchor to sides of the form. This lets you slide the splitter back and forth and allows the controls inside to resize. Its that simple. To make it a triple pane window, I added two more panels inside of the left panel, then a splitter that split across the left panel docked to the top. I might have to make a few more splits in the left panel for what I'm doing, but its not too hard. If you think you can explain it better, please do. ::cough::Divil::cough:: Also, if I got anything wrong, well that definately needs fixing :) Other than that, I hope this helps people with their paneled window needs :D Quote
*Gurus* divil Posted March 3, 2004 *Gurus* Posted March 3, 2004 Do you want this moved to the tutor's corner? Quote MVP, Visual Developer - .NET Now you see why evil will always triumph - because good is dumb. My free .NET Windows Forms Controls and Articles
Illusion Posted March 4, 2004 Posted March 4, 2004 Hi, I tried this and it didn't work .. :confused: I put two panels down with a txtbox in each one, put a splitter in the middle (which docked to the left) .. docked one panel two the left and the other to fill .. (oh and did bring to front) what have i missed? Quote
Denaes Posted March 4, 2004 Author Posted March 4, 2004 Do you want this moved to the tutor's corner? Sure, I'd move the second post I explained though. It seems to be better explained step-by-step w/out jabbering :D Quote
Illusion Posted March 5, 2004 Posted March 5, 2004 Hi, I found if you dock the left panel first then add the splitter then with the right panel dock fill that, it works great and you don't have to worry about the Z-Order thing. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.