Articles in this section
Category / Section

How to create and initialize a WinForms GroupBar control?

1 min read

GroupBar

1. Select the GroupBar item from the Visual Studio.NET toolbox and drop it onto the design form.

2. The GroupBar implements the AddGroup and RemoveGroup design-time verbs. Use either these verbs or the GroupBar.GroupBarItems property collection editor to add the requisite number of groups/tabs to the control.

3. Using the GroupBarItems collection editor, set the GroupBarItem attributes such as text, font, forecolor, backcolor etc., to achieve the desired visual effect for the GroupBar tabs.

4. Add client controls (GroupView or any of the standard Windows Forms controls) to the GroupBar by selecting the item from the Visual Studio.NET toolbox and dropping it onto the client region of the GroupBar. This will add the control to the GroupBar’s controls collection and associate the particular control with the current selected GroupBarItem. Repeat the process for all groups in the GroupBar by clicking on each GroupBarItem to make it the selected item.

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