473,549 Members | 2,846 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Docking behavior

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 to add a
status bar to the main form. I add the status bar and docked it to the
bottom, but the tabControl when docked as filled, fills *behind* the status
bar.

If I create a new form and put the status bar first, docked to the bottom
and then the panel docked to the top, then the tab control fills correctly
and doesn't go behind the StatusBar. What gives?

I don't want to have to rebuild the form because it will be tedious to do
so, but I cannot find a way to get the docking behavior correct.
--
Chris

dunawayc[AT]sbcglobal_lunch meat_[DOT]net

To send me an E-mail, remove the "[", "]", underscores ,lunchmeat, and
replace certain words in my E-Mail address.
Nov 21 '05 #1
7 3110
* Chris Dunaway <"dunawayc[[at]_lunchmeat_sbcg lobal[dot]]net"> scripsit:
Where/How does VS determing docking order?


Play around with the controls' "Bring to front" and "Send to back" context menu
entries to change the order.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
Nov 21 '05 #2
On 11 Aug 2004 23:09:42 +0200, Herfried K. Wagner [MVP] wrote:
Play around with the controls' "Bring to front" and "Send to back" context menu


Thanks. Bring to Front did the trick.

--
Chris

dunawayc[AT]sbcglobal_lunch meat_[DOT]net

To send me an E-mail, remove the "[", "]", underscores ,lunchmeat, and
replace certain words in my E-Mail address.
Nov 21 '05 #3
On 11 Aug 2004 23:09:42 +0200, Herfried K. Wagner [MVP] wrote:

Where is the order of the controls stored? It does not seem to be in the
..vb file for the form, yet the IDE remembers the settings each time I start
it. I thought it might be related to the order in the source in which the
controls are instanciated, but that seemed to make no sense.

--
Chris

dunawayc[AT]sbcglobal_lunch meat_[DOT]net

To send me an E-mail, remove the "[", "]", underscores ,lunchmeat, and
replace certain words in my E-Mail address.
Nov 21 '05 #4

"Chris Dunaway" <"dunawayc[[at]_lunchmeat_sbcg lobal[dot]]net"> wrote in
message news:1o******** *************** ******@40tude.n et...
Where is the order of the controls stored? It does not seem to be in the
.vb file for the form, yet the IDE remembers the settings each time I start it. I thought it might be related to the order in the source in which the
controls are instanciated, but that seemed to make no sense.


It's dependent on the order that the controls are added to the form. If you
expand the "forbidden" Windows Forms Designer generated code region and look
near the end you'll see the controls get added.
Nov 21 '05 #5
On Wed, 11 Aug 2004 20:24:19 -0400, Jeff Johnson wrote:

It's dependent on the order that the controls are added to the form. If you


I tried changing the order in which the controls are added by adjusting
that code and it made no difference, whatsoever to the docking behavior.
That was the first thing I tried.

I speculate that the settings are stored in the hidden .suo file in the
project directory.

--
Chris

dunawayc[AT]sbcglobal_lunch meat_[DOT]net

To send me an E-mail, remove the "[", "]", underscores ,lunchmeat, and
replace certain words in my E-Mail address.
Nov 21 '05 #6
Chris,

Are you sure of that,

You can try this, create a project with 3 draged 3 textboxes on it, 1, 2, 3,
in this sequence and give them all the property dock = bottom.

Than this you will see them change.

Private Sub Button1_Click(B yVal sender As System.Object, _
ByVal e As System.EventArg s) Handles Button1.Click
Me.Controls.Rem ove(Me.TextBox3 )
Me.Controls.Rem ove(Me.TextBox2 )
Me.Controls.Rem ove(Me.TextBox1 )
Me.Controls.Add (Me.TextBox1)
Me.Controls.Add (Me.TextBox2)
Me.Controls.Add (Me.TextBox3)
End Sub

In other words "the last has the highest order"

I hope this helps?

Cor

Nov 21 '05 #7

"Chris Dunaway" <"dunawayc[[at]_lunchmeat_sbcg lobal[dot]]net"> wrote in
message news:4f******** *************** *****@40tude.ne t...
It's dependent on the order that the controls are added to the form. If
you
I tried changing the order in which the controls are added by adjusting
that code and it made no difference, whatsoever to the docking behavior.
That was the first thing I tried.

I speculate that the settings are stored in the hidden .suo file in the
project directory.


Nope. If you play around with Bring to Front and Send to Back and examine
the generated code immediately after each "move," you'll see how the
designer swaps things around.

Remember that Visual Studio is totally unnecessary for the creation of .NET
programs; you could write them in Notepad. Everything about how a .NET
program works is dependent on source files, so that's where everything is
stored. The .suo file is for Visual-Studio-specific options.
Nov 21 '05 #8

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

Similar topics

0
1762
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 Solution Explorer, Properties Window and something else tabbed in it and the lower window has Dynamic Help and something else tabbed in it. The...
6
2932
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 Solution Explorer or Toolbox in Visual Studio.NET. For my last project, I used the SyncFusion component for docking windows, but my experience is that...
0
3120
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
25
5305
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...
4
4992
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 lot for your responses and i wish you a merry christmas :-)
1
2026
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...
2
2626
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...
0
1162
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
2125
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...
0
7715
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7956
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...
1
7469
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...
0
6040
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...
1
5368
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3498
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
1935
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
1
1057
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
757
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...

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.