Articles in this section
Category / Section

How to expand the GroupBarItem programatically in WinForms GroupBar?

1 min read

Expand Groupbar item

In GroupBar, it is possible to expand the GroupBaritem programmatically by using the property named “SelectedItem”.

 

Following Code snippet helps to achieve this requirement.

C#

//To Select the item in the groupbar
 this.gbVisualStudio.SelectedItem = this.listBox1.SelectedIndex;

 

VB

'To Select the item in the groupbar
Me.gbVisualStudio.SelectedItem = Me.listBox1.SelectedIndex

                             

                                                        Expand GroupBarItem in GroupBar with image

Figure 1. Expand GroupBarItem in GroupBar with Image.

 

Expand GroupBarItem in GroupBar with image

Figure 2. Expand GroupBarItem in GroupBar with Image.

 

Expand GroupBarItem in GroupBar with image

Figure 3. Expand GroupBarItem in GroupBar with Image.

Samples:

C#: How to expand GroupBarItem C#

VB: How to expand GroupBarItem VB

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment
Access denied
Access denied