473,378 Members | 1,138 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.

Panels and Splitters

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:
_
|_|
|_|
|_|

Where the rectangles are the panels and the underscores are the
splitters. When I drag a splitter up, it can go up as much as I want.
Even make the top panel very small. But when I want to drag them down,
it lets me drag only to a specific point, so I cannot make the lower
panel small.

Anyway, here is my code:

private void InitPanel()
{
panel = new Panel();
panel.Tag = this;
panel.BorderStyle = BorderStyle.Fixed3D;
panel.Dock = DockStyle.Top;
panel.AllowDrop = true;
panel.DragEnter += new DragEventHandler(panel_DragEnter);
panel.DragDrop += new DragEventHandler(panel_DragDrop);
panel.MouseUp += new
MouseEventHandler(chart.Panel_MouseUp);
chart.PanesPanel.Controls.Add(panel);
panel.BringToFront();
}

private void CreateSplitContainer()
{
splitter = new Splitter();
splitters.Add(splitter);
splitter.MinExtra = splitter.MinSize = 0;
splitter.Dock = DockStyle.Top;
splitter.SplitterMoved += new
SplitterEventHandler(chart.SplitContainer_Move);
splitter.MinSize = 15;
chart.PanesPanel.Controls.Add(splitter);
splitter.BringToFront();
}

The problem is that when, using the splitters, I'm trying to make the
panels smaller, they have a limit of how small it can go, and it's
about 100-150 pixels (quite much). I need a possibility to use the
splitters to make the panels much smaller, such as 15 pixels.

How can I do that?

Thanks!

May 7 '06 #1
0 1498

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

Similar topics

0
by: PZ | last post by:
OSS 2005 The First International Conference on Open Source Systems Genova, July 11 - 15, 2005 CALL FOR PANELS http://oss2005.case.unibz.it Submissions of panels are solicited for the "First...
0
by: PZ | last post by:
OSS 2005 The First International Conference on Open Source Systems Genova, July 11 - 15, 2005 CALL FOR PANELS http://oss2005.case.unibz.it Submissions of panels are solicited for the "First...
1
by: pfnus | last post by:
Hi, I want to display different forms when the buttons are clicked and all the forms are having different controls on it. So instead of adding new windows forms to the project, i enlarged the...
2
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....
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...
1
by: Demetri | last post by:
I'm trying to determine if we want to use panels or user controls for our pages. Our primary concern is performance, page loading and posting speed. To illustrate my question, lets use the...
2
by: TN | last post by:
I know it is not possible to set the SplitContainer's SplitterWidth to 0, but I was wondering if it is possible to inherit from the SplitContainer and allow an application to set it to 0? Idea is...
1
by: Ben | last post by:
Hi We have a number of Panels on our windows form, we have controls inside and outside of the panels. I am having problems tabbing between controls, it appers to be when the controls are...
3
by: Andrea Gasperi | last post by:
Hi there not sure if this is the right place but i'm proud to use for the first time the "Managed Newsgroups" feature of my brand new MSDN subscription :-) So here is the problem. I've...
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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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.