Tab Closing

You can add a close button to each tab by setting the TabItemClose property to InEachTab. This will allow users to close any tab in the control. On-tab close buttons appear as follows:

 

 

If you prefer, you can create a global close button that will appear on the tabstrip instead of directly on the tabs. To add the global close button, you set the TabItemClose property to GlobalClose. Clicking the global close button will close the currently selected tab. The global close button appears as follows:

 

 

If you want to prevent a user from closing a particular tab, just set that tab's CanUserClose property to False. For task-based help about allowing tab closing, see Allowing Users to Close Tabs; for task-based help about preventing tab closure, see Preventing a User from Closing a Specific Tab.


Send us comments about this topic.
Copyright © GrapeCity, inc. All rights reserved.