Click here to Skip to main content
Licence Apache
First Posted 1 Jan 2010
Views 22,232
Downloads 538
Bookmarked 19 times

Auto Hide Panel

By Dariush Tasdighi | 5 Jan 2010
How to implement an Adapter class to make panels of split container become auto hidden
6 votes, 42.9%
1

2

3
3 votes, 21.4%
4
5 votes, 35.7%
5
3.00/5 - 14 votes
μ 2.91, σa 3.29 [?]

Introduction

If you want to have a useful and simple article for creating an Adapter class to make panels of SplitContainer become auto hidden, you have came to the right place. ;-)

Background

There are a lot of samples on the internet that tell you how to create a class for this or modify some panels for this. But I saw that some of them are not perfect and clear! So I decided to implement a class (component) with the name of AutoHidePanel for this purpose.

Using the Library

Using this library is too simple and clear! Suppose that you put some SplitContainer in your form, then you drag and drop my AutoHidePanel component from the toolbox in the same form. Then all you need to do is set the MySplitterPanel property of my component (AutoHidePanel) to one of the panels of SplitContainer (Panel 1 or Panel 2).

  • In my library, there aren't any differences between choosing panel1 and panel2 in Microsoft SplitContainer.
  • If you change the RightToLeft property of form to Yes or No, everything works fine and properly.

Suppose that you select the panel1 of SplitContainer in my component. When you run the form (as you can see in the first picture) and your mouse pointer is over the panel1, you can see the panel1 in normal width. but when you move your mouse pointer over the panel2 (as you can see in the second picture) the panel1 will be hidden automatically.

License

This article, along with any associated source code and files, is licensed under The Apache License, Version 2.0

About the Author

Dariush Tasdighi

Web Developer

Iran (Islamic Republic Of) Iran (Islamic Republic Of)

Member
I'm experienced in below items:
 
- XML 1.0
- CSS 2.0
- ASP 3.0
- HTML 4.01
- XHTML 1.0
- Javascript 1.5
- .NET Framework 1.1/2.0
- Microsoft Office 2000/XP
- Microsoft Visual Basic 6
- Microsoft SQL Server 2000/2005
- Microsoft C#.NET (Windows Based)
- Microsoft C#.NET (XML Web Service)
- Microsoft C#.NET (Web Based = ASP.NET)
 
My Site URLs:
http://www.IranianExperts.ir
http://www.IranianExperts.com
 
My Yahoo Group URL: http://groups.yahoo.com/group/iranianexperts
 
Mobile: 0098-912-108-7461
Address: Tehran, Tehran, Iran

Sign Up to vote   Poor Excellent
Add a reason or comment to your vote: x
Votes of 3 or less require a comment

Comments and Discussions

 
You must Sign In to use this message board. (secure sign-in)
 
Search this forum  
 FAQ
    Noise  Layout  Per page   
  Refresh
GeneralMy vote of 1 PinmemberFernandoUY3:24 25 Jan '12  
GeneralMy vote of 4 PinmemberAnkit Luthra3:16 28 Aug '10  
GeneralWonderfull Article PinmemberNaDeRSetarei1:56 30 Jan '10  
GeneralRe: Wonderfull Article PinmemberGreizzerland5:44 30 Jan '10  
GeneralMy vote of 1 PinmemberKebrite18:18 11 Jan '10  
GeneralUnmeaning Vote PinmemberNaDeRSetarei2:25 30 Jan '10  
Generalcode Pinmemberkonikula21:00 6 Jan '10  
GeneralMy vote of 1 PinmemberJPaula0:11 6 Jan '10  
GeneralUnmeaning Vote PinmemberNaDeRSetarei2:24 30 Jan '10  
GeneralMy vote of 1 PinmemberPSU Steve5:07 5 Jan '10  
GeneralRe: My vote of 1 PinmemberDariush Tasdighi8:54 5 Jan '10  
GeneralRe: My vote of 1 PinmemberGreizzerland7:27 15 Jan '10  
GeneralSecurity Update PinmemberNaDeRSetarei2:54 30 Jan '10  
GeneralRe: Security Update PinmemberGreizzerland5:42 30 Jan '10  
GeneralMy vote of one: There is no article here PinmemberZTransform23:10 3 Jan '10  
GeneralRe: My vote of one: There is no article here PinmemberDariush Tasdighi9:04 4 Jan '10  
RantRe: My vote of one: There is no article here PinmemberTom Spink14:11 5 Jan '10  
GeneralComplaisance Package SP2 PinmemberNaDeRSetarei2:42 30 Jan '10  
GeneralMy vote of 1 PinmemberZTransform23:09 3 Jan '10  
Generalblind Member PinmemberNaDeRSetarei2:26 30 Jan '10  
GeneralMy vote of 1 PinmemberMelionu12:09 3 Jan '10  
GeneralRe: My vote of 1 PinmemberDariush Tasdighi9:04 4 Jan '10  
Generalcompassionate Member PinmemberNaDeRSetarei2:31 30 Jan '10  
GeneralMore info please Pinmemberspoodygoon8:11 2 Jan '10  

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

Permalink | Advertise | Privacy | Mobile
Web02 | 2.5.120209.1 | Last Updated 5 Jan 2010
Article Copyright 2010 by Dariush Tasdighi
Everything else Copyright © CodeProject, 1999-2012
Terms of Use
Layout: fixed | fluid