Files
docs-desktop/dotnet-desktop-guide/framework/winforms/controls/how-to-display-a-control-in-the-choose-toolbox-items-dialog-box.md
T

2.0 KiB

title, ms.date, helpviewer_keywords, ms.assetid
title ms.date helpviewer_keywords ms.assetid
How to: Display a Control in the Choose Toolbox Items Dialog Box 08/23/2019
global assembly cache [Windows Forms], Choose Toolbox Items dialog box
AssemblyFoldersEx [Windows Forms], Choose Toolbox Items dialog box
controls [Windows Forms], display in Choose Toolbox Items dialog box
assembly folder registration [Windows Forms], Choose Toolbox Items dialog box
Choose Toolbox Items dialog box [Windows Forms], display control
01ef6eba-d044-40f0-951d-78eff7ebd9a9

How to: Display a Control in the Choose Toolbox Items Dialog Box

As you develop and distribute controls, you may want those controls to appear in the Choose Toolbox Items dialog box of Visual Studio, which is displayed when you right-click the Toolbox and select Choose Items. You can enable your control to appear in this dialog box by using the AssemblyFoldersEx registration procedure.

To display your control in the Choose Toolbox Items dialog box:

  • Install your control assembly to the global assembly cache. For more information, see How to: Install an Assembly into the Global Assembly Cache.

    -or-

  • Register your control and its associated design-time assemblies by using the AssemblyFoldersEx registration procedure. AssemblyFoldersEx is a registry location where third-party vendors store paths for each version of the framework that they support. Design-time resolution can look in this registry location to find reference assemblies. The registry script can specify the controls you want to appear in the Toolbox.

See also