473,378 Members | 1,504 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

Docking and overlappping onrols

css
I had placed three controls on a UserControl and had them all perfectly
docked together filling up the UserControl.

I needed to add a fourth controls docked to the top. So I dropped it on the
UserControl, changed the new control to Dock = top and changed the taborder
of all the other controls (bumped each up by 1) . But when I start changing
the other controls back to dock = left, fill, etc... they expand the entire
height of the form making the top controls appear to overlap all the other
controls . In a sense, the controls "slip" under the new 4th control.
If I were to remove them all and place new controls from scratch they all
appear fine and respect the control with the "Top" boundary - then it works
fine. But I would have to redo alot of settings if I took this route!!!

How can I make sure that any newly added controls dock appropriately with
the previous controls

Thanks
Dec 28 '05 #1
5 1380
I think I had a similar problem before - and it has something to do with the
order of the controls being added to a container.

In the "Windows Form Designer genereted code" locate the lines where the
controls in questions are added to the container, something similar to the

Me.Controls.Add(Me.myNewlyAddedControl) in VB, or
this.Controls.Add(this.myNewlyAddedControl) in C#.

Then move this line of code prior to the other docked controls and switch to
design view - now your controls should appear as you wanted them to..

As far as I understand TabIndex has nothing to do with that, though it is
always good to set it right.

HTH
"css" wrote:
I had placed three controls on a UserControl and had them all perfectly
docked together filling up the UserControl.

I needed to add a fourth controls docked to the top. So I dropped it on the
UserControl, changed the new control to Dock = top and changed the taborder
of all the other controls (bumped each up by 1) . But when I start changing
the other controls back to dock = left, fill, etc... they expand the entire
height of the form making the top controls appear to overlap all the other
controls . In a sense, the controls "slip" under the new 4th control.
If I were to remove them all and place new controls from scratch they all
appear fine and respect the control with the "Top" boundary - then it works
fine. But I would have to redo alot of settings if I took this route!!!

How can I make sure that any newly added controls dock appropriately with
the previous controls

Thanks

Dec 28 '05 #2
css
Nope - that didn't work. It must be something in the resx file.
Dec 28 '05 #3
I think that I had it wrong - instead of moving the line of the
NewelyAddedControl up - move it down - that should do it

"css" wrote:
Nope - that didn't work. It must be something in the resx file.

Dec 28 '05 #4
Try selecting the controls that are "under" the 4th control and
choosing "Bring To Front" for that control. You can also experiment
with this on the other controls until you get them the way you want.

Dec 28 '05 #5
css
Chris,
That worked great. I actually had to change the control by "send to back"
Dec 28 '05 #6

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

Similar topics

0
by: Pamela Thalacker | last post by:
The default configuration for the VS.Net IDE is two combination windows docked to the right of the screen and tiled vertically(by which I mean one on top of the other). The upper window has the...
6
by: Lecture Snoddddgrass | last post by:
Greetings, Can anyone recommend a good 3rd party docking windows component for WinForms? I'm looking for something that allows windows to not only be docked but to "popout", much like the...
0
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,...
7
by: Chris Dunaway | last post by:
Where/How does VS determing docking order? I created a form with a panel docked to the top and a tab control with fill docking. I had added some tabs and place some controls, etc., and decided...
25
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...
4
by: Enrique | last post by:
hi all, i'd like to know how i could do a docking menu and docking toolbar. i know it's not so easy y VS .NET 2002 and 2003. anything will help me: links, code, articles..... thanks a...
1
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...
2
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...
0
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....
2
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...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.