473,756 Members | 1,842 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Stupid problem with Splitters and Docking

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
Nov 21 '05 #1
3 1364
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.

Nov 21 '05 #2
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

Nov 21 '05 #3
That was it. The order in which I put them on the form was screwing with my
docking.

"MstrContro l" <ms*********@ya hoo.com> wrote in message
news:11******** **************@ z14g2000cwz.goo glegroups.com.. .
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

Nov 21 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
3134
by: ka | last post by:
I'm using Corwnwood.Magic library for docking in my application. My application to let the users to create their screen look to show some particular data. I treid to dock my things in the way, Left Side: ToolBox Middle: WorkPanel Right: Package Explorer + PropertyWindow WorkToolBox, Package Explore, PrepertyWindow : derived from Content
5
1297
by: Derrick | last post by:
I have a form with 3 sections in a vertical arrangement. It's starting to get a little tall, so I want the user to be able to resize the form (using the border), and have the middle section scroll. Right now, I have 3 panels: the top panel I want fixed at 75 pixels high, and docked Top. The bottom panel I also want 75 pixels high, and docked Bottom. The middle panel should take up the rest (dock Fill), and have it's autoscroll set to...
2
2707
by: Gary Shell | last post by:
We are playing around with using the splitter on a form and want to do the following: 1. On the left side of the form will be a tree view. 2. To the right of that tree view would be a splitter. 3. To the right of that splitter would be a second tree we call a palette. 4. To the right of the palette would be another splitter. 5. To the right of that splitter would be our "content area". We are trying to find a way to allow this...
25
5334
by: Dennis | last post by:
Has anyone really gotten the Docking and Splitter Bars to work for anyting but the simplest application for two controls and one splitter bar filling the whole form? If so, can you enlighten my on HOW! I even tried creating background panels and docking them with the controls on the panels but the docking order seems to be random! Another useless control from Microsoft I think! -- Dennis in Houston
1
2036
by: Joe | last post by:
I'm creating a C# application, and want to use docking windows. However, I want the docking windows to look like the docking windows withing VS2005, with a title bar, close button, etc... When the user clicks and drags the docking window, it'll un-dock, and open in a tool window, and also allow the user to re-dock it elsewhere... Any ideas where I can go to look up how to accomplish this? Thanx! --
2
2633
by: Matt Brown - identify | last post by:
Hello, I've spent the better part of the day going over code and thinking and have come up with the following docking method that works perfectly. At this point, my brain is about to explode and I was wondering if someone can help me figure out the calculations for right and bottom docking: note: lRelOffsetLeft and lRelOffsetTop are calculated on mousedown (location of mouse in relation to top and left of picturebox)
0
1169
by: nhc1987 | last post by:
Do anyone have the Docking control (docking sidebar, docking panel, ..) library with Vista style ? I use a properties grid and I want to dock it on the right of main form. Now, I have some really. But all of theme is XP style, I need Vista style indeed. Thanx in advance.
2
2148
by: =?Utf-8?B?aGVyYmVydA==?= | last post by:
I need to develop a "docking station" simulator for Apple IPod in .NET. The PC acting as a development station connects to the IPod docking station using a parallel port. Where is this software available ? Where can I find the Ipod docking station specs? as an alternative, is a "docking station" library available in .NET? thank you very much
2
959
by: =?Utf-8?B?S2lk?= | last post by:
Hi Is there some good sample that I can write a window app like Visual Studio which have many area view windows docking in the left and right and bottom ? Thank for your teaching .
0
9275
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9872
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9843
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8713
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6534
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5304
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3805
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3358
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2666
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.