ResetState Method (ToolBase)

Resets the ToolBase to its original state undoing any changes that were made at runtime.
Public Sub ResetState() 
public void ResetState()

You can invoke this method to remove any end-user customizations to the tool and return it to the state it was in when the application started. Specifically, this method will reset the caption, display style, grouping, visibility and recently-used status of the tool. For PopupMenu tool, invoking this method also resets any customizations that have been performed on the tools of the menu.


Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also