Click here to Skip to main content
15,892,575 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
Can we have Expander control or something like that in Form Application?


Thx
Posted
Updated 6-Apr-10 23:37pm
v2

Some thing like this[^]?

-Saurabh
 
Share this answer
 
Sure. You can set a normal button to look like the expander button you have in the image. Now, you throw in all your controls inside of a groupbox that you have collapsed. Once the button is pressed (you'd have to check on the state of the groupbox whether it is expanded or collapsed) you can slowly increase its height (and maybe even width) to whatever it was in the original state. And you ought to increment it in steps too.

You could the same so much more easily with WPF, but you'd have to wait for an expert on that subject to respond.

If you do go about and do write that, you will find it worth your while to wrap all of that in a user control that you can use and reuse again and again.

[edit]
of course, looking at Dario's example in the previous post is even easier!
 
Share this answer
 
v2

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900