…
|
||
---|---|---|
.. | ||
C# | ||
Readme.md |
Readme.md
Windows Forms Controls Installer Sample
Load custom Windows Forms controls into the Toolbox in Visual Studio.
- Technologies: Visual Studio 2017 SDK
- Topics: Visual Studio Shell, VSX
Description
This sample demonstrates how to create a Visual Studio package (VSPackage) that loads custom Windows Forms controls into the Toolbox. The toolbox has two new items when a Windows Form is open in the Editor:
- MyCustomTextBox: A normal Windows Forms control that adds a blank text field
- MyCustomTextBoxWithPopup: A custom ToolboxItem that adds a text box and pops up a dialogue box when added.
Requirements
Get all samples
Clone the repo (How to):
git clone https://github.com/Microsoft/VSSDK-Extensibility-Samples.git
Run the sample
- To build and execute the sample, press F5 after the sample is loaded
- Create a new Windows Forms Application in C#, Visual Basic, or C++
- Open the Windows Forms Designer (Default: Form1.cs)
- Open the Toolbox: View > Toolbox
- If your Windows Forms Designer is open, you should see a new tab at the bottom of the toolbox called MyOwnTab
- MyOwnTab contains two new toolbox items. Double-click on each of them to add them to the form
Related topics