Assembly: Microsoft.VisualStudio.Shell (in microsoft.visualstudio.shell.dll)
The Visual Studio IDE generates a ToolboxUpgraded event whenever one or more of the following situations occur:
The version number of an existing Toolbox item provider supplied by a VSPackage changes.
The Toolbox item provider version number of a VSPackage is set by the version argument of theobject that must be applied to any VSPackage providing Toolbox items.
A VSPackage programmatically generates aevent through the Visual Studio SDK by a VSPackage calling with .
IVsUIShell uiShell = (IVsUIShell)GetService(typeof(SVsUIShell)); IVsPackage pkg = GetService(typeof(Package)) as IVsPackage; pkg.ResetDefaults((uint)__VSPKGRESETFLAGS. PKGRF_TOOLBOXSETUP);
For more information on handling a ToolboxInitialized event and providing custom Toolbox items, see.