Click here to Skip to main content
13,408,431 members (43,778 online)
Rate this:
Please Sign up or sign in to vote.
See more:
Hello friends,

I am working in a Window Application in which I have 2 panel and Inside Panel there is a Datagridview. I want that 2nd panel auto hide just like "Properties Windows" or "Solution Explorer". Please help me to find a suitable code or provide link for it.
Posted 2-Apr-13 5:30am
Updated 2-Apr-13 6:19am

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

Neetesh Agarwal 2-Apr-13 11:10am
Thats not work as my need, I have used it already. I want like Property window , Solution Explorer in Visual Studio
Maciej Los 2-Apr-13 11:16am
You did specify your needs as follow: " I want that 2nd panel auto hide(when there is no data in 2nd Datagridview)".
Please, be more specific and provide more details, if you want detailed answer.

Please, use "Improve your question" to upgrade your question.
Neetesh Agarwal 2-Apr-13 11:17am
just like "Properties Windows" or "Solution Explorer" in Visual Studio, As we can dock them and auto hide. when we click Its visible. Like that
Maciej Los 2-Apr-13 11:18am
And what???
Neetesh Agarwal 2-Apr-13 11:23am
Neetesh Agarwal 2-Apr-13 11:26am
Simply my need is to make panel auto hide like Properties windows in visual Studio........
Maciej Los 2-Apr-13 11:41am
You mean, you want to create "auto-hide" property for Panel2 based on this conditions: Panel2 is not visible (by default), on the right (or on the left) side of window user sees "solution explorer"/"properties" "bookmarks"; when mouse is over this "bookmark", "solution explorer" or "properties" window is getting visibile. Is that what you want to achieve?
Neetesh Agarwal 2-Apr-13 11:42am
Maciej Los 2-Apr-13 11:44am
Now, i understand...
Neetesh Agarwal 2-Apr-13 11:49am
Thanks.... Please help me to solve my problem.
Maciej Los 2-Apr-13 12:01pm
See my updated solution.
Neetesh Agarwal 2-Apr-13 12:26pm
Thanks I am trying it.
AjayDevgan2 3-Apr-13 8:33am
I also have same problem. If you find solution please write answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web04 | 2.8.180221.1 | Last Updated 2 Apr 2013
Copyright © CodeProject, 1999-2018
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100