473,394 Members | 1,701 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,394 software developers and data experts.

4 panes WinForm

I work with VS2005 and .NET FW ver. 3.0.
I need to implement 3 to 4 panes in my form application.
Is that possible?
Is there a way for the user to configure in real time (the pane number)?
Is there some reference or a sample anywhere in the Internet that is close
to that?

Regards
Ronny
Jul 22 '08 #1
2 3076
Ronny,

You are going to have to use a number of panels for this, and
create/delete panels as the user changes the number that they want (how they
choose to do that is up to you).

You can also use a combination of splitters as well to allow the users
to size the panels.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Ronny" <ro***@john.comwrote in message
news:ej**************@TK2MSFTNGP03.phx.gbl...
>I work with VS2005 and .NET FW ver. 3.0.
I need to implement 3 to 4 panes in my form application.
Is that possible?
Is there a way for the user to configure in real time (the pane number)?
Is there some reference or a sample anywhere in the Internet that is close
to that?

Regards
Ronny

Jul 22 '08 #2
"Ronny" wrote :

"I need to implement 3 to 4 panes in my form application. Is that possible?"

Assuming you mean to manipulate 3 or 4 independent container controls within
one form ?

Most helpful, I think, would be if you would specify your requirements a
little more specifically : is it the case that that one of your "panes" is
always displayed simultaneously with another "pane" or does the end-user
have the choice of seeing only one pane; is one ... or more ... panes of the
set of panes always visible ? Do you wish the user to have the capability to
re-size, move, or dock the panes within the master container as well as
control pane visibility ?

Yes, many different ways you could approach that. As "raw materials" you
could use SplitContainers, as others have suggested, regular panels, even
other Forms. You could go "retro" and trot out the old classic MDI
windows-in-main-window facilities (bias : personally, I don't like MDI
interfaces).

If you really want to "think outside the box" you can make each of your
containers a separate window (Form) and show them independently on the
screen (or move them to display inside another Form if you wish at
run-time). Note that I am NOT saying you should do that :)

"Is there a way for the user to configure in real time (the pane number)?"

A lot depends on what you want the interface to present to the user at
run-time in terms of pane management : independent showing/hiding of your
"panes" from a menu, control of individual "panes" by go-away hickeys like
forms have, hiding of "panes" by dynamic resizing of a SplitContainer's
split-control through the user clicking and dragging at run-time ...
switching between pre-sets of fixed relations of panes ?

Yes, again many ways to approach this. Hiding panels within SplitContainers;
using independent regular panels and adjusting their docking or anchoring at
run-time depending on what's being shown, etc. You might want to check out
FlowLayoutPanel and TableLayoutPanel briefly for some more ideas to round
out your sense of what's possible with WinForms' container controls.

"Is there some reference or a sample anywhere in the Internet that is close
to that?"

Check MSDN for documentation/examples/tutorials on SplitContainers.
Experiment. You might look at Chris Sells' excellent book on WinForms.
Search CodeProject for SplitContainer, perhaps filtering by .NET language of
your choice.

best, Bill

Jul 23 '08 #3

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

Similar topics

11
by: Matt Kruse | last post by:
This is a common requirement - "freeze panes" in a table, so that some header rows and some columns on the left are frozen while the body content scrolls. This makes large tables more usable on...
1
by: Dan | last post by:
I have created an Excel worksheet using automation from a VB.NET application. The worksheet is never made visible by the VB program. It is created and filled with data from a database and then...
1
by: Tom | last post by:
Does anyone know of a way to "freeze panes" in a contnuous form? Thanks! Tom
3
by: Phani | last post by:
hi everyone !!!! i want to develop a web application in which the gui is divided into different panes and the panes should have facilities like increasing the width by dragging , dockable etc...
0
by: CHRISM | last post by:
Hiya, Has anyone looked at the FotoVision sample from Microsoft? Here: http://msdn.microsoft.com/library/en-us/dnnetcomp/html/FotoVisionDesktop.asp I downloaded the sample projects and...
4
by: Roger Withnell | last post by:
I would like to freeze column and row headings on a webpage, simulating freeze panes as in an Excel spreadsheet. Don't seem to be able to do it with Frames. Is there a way with Javascript...
3
by: Allen Chen [MSFT] | last post by:
Hi Richard, Quote from Richard================================================== However I also want to be able to remove the panes. I have tried to include this, but find that when I first...
7
by: meekstro | last post by:
I have been assigned to design an application that uses tabbed panes for different catagories and collects information bout size and quantity. Also it is suppose to display the cost of the order as...
1
by: ronnysaid | last post by:
Hi all, I was wondering if there is a way to get the range from the frozen panes in excel using interop v.12?? Or is there a property associated with the range indicating its frozen or not?? ...
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
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: 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...
0
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,...
0
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...
0
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,...
0
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...

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.