all groups > vb.net controls > june 2005 >
You're in the

vb.net controls

group:

Stupid problem with Splitters and Docking


Re: Stupid problem with Splitters and Docking MstrControl
6/14/2005 1:18:59 PM
vb.net controls:
I've found Waldo!!! (Sorry... couldn't help myself :)

Jokes apart... you must remember, when adding panels to the form that
you must UNSELECT the panel in order to add more panels to the same
form. Because if you don't you'll add panel inside a panel, hence
producing the stange behavious you describe.

I've tried what you said on your post, and no problem arraised...

Regards,

Paulo
Re: Stupid problem with Splitters and Docking Chris Dunaway
6/14/2005 2:37:35 PM
Also, if a control that you have docked is hidden behind another
control try selecting it in the dropdown at the right and then choose
Bring To Front from the Alignment menu. Do this for any controls that
are not docked properly. This will often correct the problem.
Stupid problem with Splitters and Docking Rob Mayo
6/14/2005 4:07:22 PM
This is a stupid problem to have, but here goes.

I wanted to make like an Outlook-looking app. Multiple splitters, panes,
etc.
If I ...
1. Take a Form, add a TreeView, dock it Left.
2. Add a Splitter, dock it Left.
3. Add a ListView, dock it Full

....I have no problems, but If I...
1. Take a Form, add a Panel, dock it Left.
2. Add a splitter, dock it Left.
3. Add a secon Panel, dock it Full

I've got problems. :S
The only difference between the two procedures described above is using
Panels instead of TreeViews and ListViews.
The problem is that the second panel fills to the size of the entire Form,
not to the size of the splitter. The second panel seems to ignore the
splitter. The splitter seems to size the first panel correctly. I added
buttons to the second panel at (0,0) and they show up on the left side of
the form, rather than the immediate right of the splitter. I've brought the
second panel to the front and sent it to the back just to see the
difference.

Can anyone tell me why this is?
I feel like a dunce, not being able to figure this out becuase I've been
doing VB.Net for years and it's frustrating to be stuck on something so
stupid.

Any help is appreciated.
Thanx in advance,

WALDO

Re: Stupid problem with Splitters and Docking MstrControl
6/17/2005 8:04:24 AM
One more thing... Not only Bring to Front or Send it to Back, the order
that the controls are stacked (from bottom up) states the order that
they will be docked.

Regards,

Paulo
Re: Stupid problem with Splitters and Docking Rob Mayo
6/22/2005 10:44:08 AM
That was it. The order in which I put them on the form was screwing with my
docking.

[quoted text, click to view]

AddThis Social Bookmark Button