Accordion in windows Forms
-
Could someone help in understanding with examples of multiple controls in a Panel which is in an Table layout and should behave like web Accordion? I have gone through the websites and other tutorials but none of those examples have real time scenarios. So it is very hard to find the exact procedure of accordion will act in windows forms with multiple controls like textbox, combo box, checked list box, button etc. I would like to have one such article with real time Examples of Code snippets from SA because this concept has not been explained properly anywhere in google with snippets and examples
Your help is much appreciated. Thanks Happy Coding!
-
Could someone help in understanding with examples of multiple controls in a Panel which is in an Table layout and should behave like web Accordion? I have gone through the websites and other tutorials but none of those examples have real time scenarios. So it is very hard to find the exact procedure of accordion will act in windows forms with multiple controls like textbox, combo box, checked list box, button etc. I would like to have one such article with real time Examples of Code snippets from SA because this concept has not been explained properly anywhere in google with snippets and examples
Your help is much appreciated. Thanks Happy Coding!
-
Could someone help in understanding with examples of multiple controls in a Panel which is in an Table layout and should behave like web Accordion? I have gone through the websites and other tutorials but none of those examples have real time scenarios. So it is very hard to find the exact procedure of accordion will act in windows forms with multiple controls like textbox, combo box, checked list box, button etc. I would like to have one such article with real time Examples of Code snippets from SA because this concept has not been explained properly anywhere in google with snippets and examples
Your help is much appreciated. Thanks Happy Coding!
-
Oops. I am sorry. I don't want to help me in writing an article. I actually wanted an article/ tutorial to understand accordion in windows forms. I am working on windows forms and I wanted to do something like in Web Accordions. That's the only intension.
Your help is much appreciated. Thanks Happy Coding!
-
Meaning I worked on one such form and I tried to create my own code for accordion. But my form has only label as control. If I add more controls, I do not know how to proceed for accordion. Real time meaning: which has most used the controls in the form like combo box, listbox, button etc
Your help is much appreciated. Thanks Happy Coding!
-
Meaning I worked on one such form and I tried to create my own code for accordion. But my form has only label as control. If I add more controls, I do not know how to proceed for accordion. Real time meaning: which has most used the controls in the form like combo box, listbox, button etc
Your help is much appreciated. Thanks Happy Coding!
-
OK let me put this again Clear. You must be knowing for Accordion in Web applications work. I want a similar one in windows. I already did try. But If my panel has any other controls other than Label, it doesn't work. Could not figure it out how to achieve this with all the controls in the panel. Here is the code that will act labels click as accordion
Private Sub ButtonClick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Label2.Click, Label3.Click, Label5.Click
'find out which label was clicked
Dim lbl As Label = CType(sender, Label)
'find the panel containing the label
Dim pnl As Panel = lbl.ParentFor Each p As Panel In TableLayoutPanel1.Controls Dim l As Label = CType(p.Controls(0), Label) If p.Equals(pnl) Then 'expand or collapse the panel If p.Height = 150 Then p.Height = 25 l.ForeColor = Color.Black Else p.Height = 150 l.ForeColor = Color.Black End If Else p.Height = 25 l.ForeColor = Color.Black l.Image = My.Resources.arrow End If Next
End Sub
Your help is much appreciated. Thanks Happy Coding!
-
Could someone help in understanding with examples of multiple controls in a Panel which is in an Table layout and should behave like web Accordion? I have gone through the websites and other tutorials but none of those examples have real time scenarios. So it is very hard to find the exact procedure of accordion will act in windows forms with multiple controls like textbox, combo box, checked list box, button etc. I would like to have one such article with real time Examples of Code snippets from SA because this concept has not been explained properly anywhere in google with snippets and examples
Your help is much appreciated. Thanks Happy Coding!
Something like this? Easy WinForms Accordion Control[^]
"These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer
-
Something like this? Easy WinForms Accordion Control[^]
"These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer