Beginning VB 6For coders who are new to Visual Basic, working in VB version 6 (not .NET).
Welcome to the p2p.wrox.com Forums.
You are currently viewing the Beginning VB 6 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
If the code for the user control is in the same project as the form you should see a little icon in the tool box that you can drag and drop onto the form.
Project->Components... (or press Ctrl+T), locate you UserControl in the list and add it to your project. at this point you should see its icon in the toolbox
"There are two ways to write error-free programs. Only the third one works."
Unknown
If the user control code is part of the same application as the forms that it will be used on then it is automatically added to the toolbox of the project without using the Project->Components dialog to add it.