We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

How to create and initialize a GroupBar control

 

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.

Article ID: Published Date: Last Revised Date: Platform: Control:
1059 04/30/2011 07/10/2014 Windows Forms GroupBar
Tags:
Did you find this information helpful?
Add Comment
You must log in to leave a comment

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.