Home > C# > Accordion control

Accordion control

Using the Expander control that I posted a week ago, I created a Accordion control. It’s in C# and use WinForm.

The source code is available here.

Here is a image showing the Accordion:

In this example, there is 3 expander. Each expander use a Label control for the header and content section.
You can plug your own control easily.


A other rich panel

Categories: C#
  1. December 6, 2011 at 7:00 am | #1

    Thanx for posting this control.

  2. December 6, 2011 at 7:01 am | #2

    This is really very useful for me

  3. December 6, 2011 at 7:21 am | #3

    How can i add link instead of ” Test1″ & all labels.
    Please reply as soon as possible.

  4. jfblier
    December 6, 2011 at 5:08 pm | #4

    Khushbu Patel :

    How can i add link instead of ” Test1″ & all labels.
    Please reply as soon as possible.

    The Content section is a Control, so you can use which control you want. Even you home made control.
    In your case, you can use a LinkLabel to simulate a hyper link.
    If you want to have more than one control in the content section, use a Panel and place your controls in it.

  5. December 7, 2011 at 12:02 am | #5

    but i want to use this control instead of “Test1 ” & all other lines. Please help me for this.

  6. December 7, 2011 at 12:08 am | #6

    Thanx for replying and i used linklabel control but How can I use its Click event in this control?

    Please help me as soon as possible.

  7. December 7, 2011 at 12:26 am | #7

    But in this i can only one control in one expander . and i want to add more links in one expander so what should i change in this content?

  8. December 7, 2011 at 1:57 am | #8

    I got all the answers for above questions but i got ” Object reference not set to an instance of an object. ” error when i add one more expander that is expander4.

    Please reply me as soon as possible.
    Thanks

  9. December 7, 2011 at 4:22 am | #9

    how can i Change border color of Expander header ? please reply me for only this question.

    Please reply as soon as possible.

    Thank you.

  10. December 7, 2011 at 5:54 am | #10

    Hello jfblier,

    Please can u tell me that the “Accordian.cs” class is which type ? means is it “Component Class ” or ” Installer Class ” or ” Windows Service ” .

    Please reply me for this question bcoz all of the above are solved. Only this is not solved. Please help me for this as soon as possible.

    Thanks

  11. December 7, 2011 at 6:30 am | #11

    Thank you for posting this control .

    Now not require to reply me ok

    I solve my all questions

    Thanks a lot once again.

  12. December 7, 2011 at 9:31 pm | #12
  13. Anonymous
    January 25, 2012 at 2:22 pm | #13

    Very nice control. Thanks

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.