Articles in this section
Category / Section

How to create and initialize a GroupView control

1 min read

 

1. Select the GroupView item from the Visual Studio.NET toolbox and drop it either directly onto the design form or on the client region of an existing GroupBar control.

2. Assign small and large image lists to the GroupView control using the GroupView.SmallImageList and GroupView.LargeImageList properties.

3. Add the GroupView items using the GroupView.GroupViewItems property collection editor. For each of the GroupViewItems, assign the text and image index.

3. Set the GroupView control’s appearance and behavior attributes to achieve the desired visual effect and behavior. Please refer to the Essential Tools User’s Guide and Class Reference documentation for detailed information on the GroupView properties.

4. Using the property browser’s events tab, add a handler for the GroupView.GroupViewItemSelected event. The GroupViewItemSelected event is fired whenever a GroupViewItem is selected and the required processing code can be added within the handler.

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