[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.] The Example.ToolboxControlsInstaller C# sample provides a simple VSPackage you can use as a template to install custom Windows Forms controls in a user's Visual Studio Toolbox.
Note |
|---|
| You must change the VSPackage's GUID and install a VSPackage Load Key before you can distribute the VSPackage to your users. |
Security Note |
|---|
| This sample code is provided to illustrate a concept and should not be used in applications or Web sites, as it may not illustrate the safest coding practices. Microsoft assumes no liability for incidental or consequential damages should the sample code be used for purposes other than as intended. |
To build and run the sample
-
Open the ToolboxControlsInstaller.sln solution.
The default location is <drive>:\Program Files\Visual Studio 2005 SDK\<build number>\VisualStudioIntegration\Samples\IDE\CSharp\Example.ToolboxControlsInstaller.
Note |
|---|
| This sample includes Overview.xml, which contains detailed implementation notes. To open it, right-click it, and then click View in Browser. |
-
Press F5 to build the sample, register it in the experimental hive, and start Visual Studio from the experimental hive.
-
On the File menu, point to New, and then click Project to open the New Project dialog box.
-
Under Project types, expand Visual C#, and then click Windows.
-
Under Templates, click Windows Application, and then click OK to create a default Windows Forms application.
-
On the View menu, click Toolbox to open the Toolbox.
-
In the Toolbox, scroll to find the custom tab MyOwnTab and the MyCustomTextBox control.
Demonstrates
See Also