I have actually had some success at this but it works sometimes and sometimes it doesn't. I hope someone here can enlighten me so that I can achieve a consistent result.
the problem
I wish to create custom controls for use in other application I may make.
my current solution
Currently I follow the steps outlined below:
- open VB Express 2005
- select the Class Library template
- add a reference to System.Windows.Forms
- add a reference to System.Drawing
- add the line "inherits UserControl" to my class
- add the line "imports System.Windows.Forms"
- add the line "imports System.Drawing"
- add the line "imports System.ComponentModel"
- customize the user control through both the design and code views
- save and build the project
- open a new project
- select the Windows Application template
- add a reference to the .dll file created in the above procedures
My new problems
I had gotten about halfway through a long process (making a custom control, making another that used the first, making another that used the second), when one time after some code changes and a re-build of some dlls, I got an error saying access to the xml of the very first control was denied. Whatever this means, ultimately it ends up that none of my other components can work because the bottom rung of the ladder is broken. I figured a file got corrupted somewhere along the way...and started re-doing the project all over from scratch.
But now...no components I make this way will show up in the toolbox when their dll is referenced in a new project.
It is most frustrating.
As I write, I am now wondering if I should try a repair-install of VBExpress2005
Thanks all,
--William

How to make custom controls in VB Express
kicke_
Why it once automatically added the controls I do not know, but it did, and it did so always in a new toolbox tab that carried the name of my custom control.
At least it works, though.
--William
krwoolf
The best way to create a UserControl in VB2005 Express is this:
I hope that helped...