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

Home Posts Topics Members FAQ

Splitters, docking and forms

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 palette portion to be floatable
and or dockable ala VISIO, which allows multiple panes to either be docked
or floating. Can anyone point me to some examples of how to implement this
in VB?

Thanks,
Gary
Nov 20 '05 #1
2 2694
Hi Gary,

If you can afford some third party components, then you better try .NET
Magic UI Library.

Thank You,
rawCoder

"Gary Shell" <gs****@fuse.ne t> wrote in message
news:un******** ******@TK2MSFTN GP11.phx.gbl...
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 palette portion to be floatable
and or dockable ala VISIO, which allows multiple panes to either be docked
or floating. Can anyone point me to some examples of how to implement this in VB?

Thanks,
Gary

Nov 20 '05 #2
A splitter is always between 2 other controls, so you need
1. tree
2. splitter
3. panel containing:
3.1 palette tree
3.2 splitter
3.3 content

when adding a splitter you must use a cetain order and docking:

"splitter control allows the user to resize the docked control that
is immediately before it.
Therefore, to enable the user to resize a docked control at run
time:
1. Dock the control to be resized to an edge of a container.
2. Dock a splitter control to the same side of that container."

e.g: 1 splitter.
control1.Dock = DockStyle.Left
splitter1.Dock = DockStyle.Left
splitter1.MinEx tra = 100 ' Set the minimum size control2
can be sized to.
splitter1.MinSi ze = 75 ' Set the minimum size control1
can be sized to.
control2.Dock = DockStyle.Fill ' Set control2 to fill the
remaining space on the form.
Me.Controls.Add Range(New Control() {control2, splitter1,
control1}) ' Add in reverse order to ensure proper location.

e.g: 2 Splitters.
control1.Dock = System.Windows. Forms.DockStyle .Left
control1.Width = Me.ClientSize.W idth \ 3
control2.Dock = System.Windows. Forms.DockStyle .Top
control2.Height = Me.ClientSize.H eight * 2 \ 3
control3.Dock = System.Windows. Forms.DockStyle .Fill

splitter1.Locat ion = New System.Drawing. Point(121, 0)
splitter1.Width = 3
splitter2.Dock = System.Windows. Forms.DockStyle .Top
splitter2.Heigh t = 3

panel1.Controls .AddRange(New System.Windows. Forms.Control()
{control3, splitter2, control2}) ' Add in reverse order to ensure proper
location
panel1.Dock = System.Windows. Forms.DockStyle .Fill

Me.Controls.Add Range(New System.Windows. Forms.Control() {panel1,
splitter1, control1}) ' Add in reverse order to ensure proper location
Good luck
Atara
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 20 '05 #3

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

Similar topics

3
1613
by: Peter | last post by:
Hello Thanks for reviewing my question. I have a simple question. I would like to know how you can arrange the docking order? For example, when I add a toolbar and I set the dock to TOP and then add a listview and set its dock to LEFT, the listview goes to left top to left bottom and my toolbar is now smaller because it was pushed over by...
5
1286
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...
1
1836
by: Gislain ROCHE | last post by:
Hello, I'm trying this two component to implement Docking Windows in my application, but whitch is the better. Could you tell me your expcrience witich one of these component, the advantage, the problem, ..., technical support, ... Web site http://www.dotnetmagic.com/ http://www.innovasys.co.uk/products/dockstudioxp.asp
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...
3
1357
by: Rob Mayo | last post by:
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...
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 :-)
0
1512
by: ohadasor | last post by:
Hello, I'm using .NET Framework 2.0. I'm creating several panels, one above the other, with splitters between them. I'm using Splitter and not SplitContainer, because the latter is such a big mess when you need to put splitters between more than two windows. To be more specific, my splitters and panels are like that: _ |_|
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...
3
3323
by: adebiasio | last post by:
Does anybody have any code samples that show me how to dock tabs around a form. I have found numerous controls out there that does the job, but I want to learn how to code it myself. Any sites that show how to code this. Thanks!
0
7520
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7446
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...
1
7470
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
7809
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
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
5088
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...
0
3480
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1936
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
0
763
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.