Click here to Skip to main content
Click here to Skip to main content
Go to top

Auto Hide Panel

, 5 Jan 2010
Rate this:
Please Sign up or sign in to vote.
How to implement an Adapter class to make panels of split container become auto hidden

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. Wink | ;-)

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

Share

About the Author

Dariush Tasdighi
Web Developer
Iran (Islamic Republic Of) Iran (Islamic Republic Of)
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

Comments and Discussions

 
General... Pinmemberhosseinghazanfary6-Dec-12 1:58 
GeneralMy vote of 1 PinmemberFernandoUY25-Jan-12 2:24 
GeneralMy vote of 4 PinmemberAnkit Luthra28-Aug-10 2:16 
GeneralWonderfull Article PinmemberNaDeRSetarei30-Jan-10 0:56 
GeneralRe: Wonderfull Article PinmemberGreizzerland30-Jan-10 4:44 
GeneralMy vote of 1 PinmemberKebrite11-Jan-10 17:18 
GeneralUnmeaning Vote PinmemberNaDeRSetarei30-Jan-10 1:25 
Generalcode Pinmemberkonikula6-Jan-10 20:00 
GeneralMy vote of 1 PinmemberJPaula5-Jan-10 23:11 
GeneralUnmeaning Vote PinmemberNaDeRSetarei30-Jan-10 1:24 
GeneralMy vote of 1 PinmemberPSU Steve5-Jan-10 4:07 
GeneralRe: My vote of 1 PinmemberDariush Tasdighi5-Jan-10 7:54 
GeneralRe: My vote of 1 PinmemberGreizzerland15-Jan-10 6:27 
GeneralSecurity Update PinmemberNaDeRSetarei30-Jan-10 1:54 
GeneralRe: Security Update PinmemberGreizzerland30-Jan-10 4:42 
GeneralMy vote of one: There is no article here PinmemberZTransform3-Jan-10 22:10 
GeneralRe: My vote of one: There is no article here PinmemberDariush Tasdighi4-Jan-10 8:04 
RantRe: My vote of one: There is no article here PinmemberTom Spink5-Jan-10 13:11 
GeneralComplaisance Package SP2 PinmemberNaDeRSetarei30-Jan-10 1:42 
GeneralMy vote of 1 PinmemberZTransform3-Jan-10 22:09 
Generalblind Member PinmemberNaDeRSetarei30-Jan-10 1:26 
GeneralMy vote of 1 PinmemberMelionu3-Jan-10 11:09 
GeneralRe: My vote of 1 PinmemberDariush Tasdighi4-Jan-10 8:04 
Generalcompassionate Member PinmemberNaDeRSetarei30-Jan-10 1:31 
GeneralMore info please Pinmemberspoodygoon2-Jan-10 7:11 

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.

| Advertise | Privacy | Mobile
Web03 | 2.8.140916.1 | Last Updated 5 Jan 2010
Article Copyright 2010 by Dariush Tasdighi
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid