Event generated whenever Visual Studio initializes its Toolbox.
Assembly: Microsoft.VisualStudio.Shell.10.0 (in Microsoft.VisualStudio.Shell.10.0.dll)
The Visual Studio IDE generates a event whenever one or more of the following situations occur:
A user manually resets the Toolbox by right-clicking on one of the Toolbox categories and selection Reset Toolbox.
A new VSPackage providing Toolbox items is registered.
IVsUIShell uiShell = (IVsUIShell)GetService(typeof(SVsUIShell)); IVsPackage pkg = GetService(typeof(Package)) as IVsPackage; pkg.ResetDefaults((uint)__VSPKGRESETFLAGS.PKGRF_TOOLBOXITEMS);
For more information on handling a event and providing custom Toolbox items, see Advanced Toolbox Control Development.
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.