Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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

Posted

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?

Posted
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

Posted

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.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...