Wrox Programmer Forums
|
.NET Framework 2.0 For discussion of the Microsoft .NET Framework 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the .NET Framework 2.0 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 23rd, 2007, 08:32 AM
Friend of Wrox
 
Join Date: Sep 2003
Posts: 121
Thanks: 0
Thanked 0 Times in 0 Posts
Default split container question

hi,
I have a window on which i have placed a split container.
I can move the container (vertical split) manually left/right
no problem so as to resize the left & right panes.

My problem: I want to add in buttons that allow me to display just the left or right panes. Also a button that goes back to the middle
so both panes displayed together. I cant get any code to do it.
Setting the split diatance at run time does seem to work. setting
the left/right panel width also dont work. any one got a suggestion/
code example
TIA
chas.
 
Old April 17th, 2007, 06:38 AM
Authorized User
 
Join Date: Sep 2004
Posts: 40
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi,

The splitcontainer contains a SplitterDistance property with which you can work.

Like this:
        private void button1_Click(object sender, EventArgs e)
        {
            splitContainer1.SplitterDistance = 10;
        }

Greetz,

Geert

http://geertverhoeven.blogspot.com





Similar Threads
Thread Thread Starter Forum Replies Last Post
Rookie question: container div not containing CFGerry BOOK: Beginning CSS: Cascading Style Sheets for Web Design ISBN: 978-0-7645-7642-3 6 September 1st, 2005 09:00 PM
what the heck is a container?[:D] lcsgeek General .NET 0 January 24th, 2005 12:56 PM
Changing the size of a container. aadz5 Java GUI 1 January 5th, 2005 04:03 PM
Name 'Container' is not declared. surendran ASP.NET 1.0 and 1.1 Professional 1 August 17th, 2004 10:33 AM
Form Container shortynelson General .NET 1 August 13th, 2004 01:27 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.