Adding a Control to the Toolbox
If you define your control in a separate class library project, you can use the Tools|Customize Toolbox menu item to add the controls in that class library to the Toolbox. (You can also create a merge module project that will automate the process for you and ease sharing your control among other developers. We'll look at the manual process for now.)
Continuing with our RegexTextBox control, we have tested the control and found it to work to our satisfaction. We can add a class library project (select File|Add Project|New Project) from the Add New Project dialog. Let's name the class library project CustomControls as shown in Figure 9.2. To complete the process of building the class library, we delete the basic ...
Get Visual Basic® .NET Power Coding now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.