There is no general tutorial. It all depends on what you want your control to do.
In general though, there are two types:
- UserControls.
- Custom controls.
UserControls are a type of 'container' you can add controls to, which then shows up in the toolbox as a single control. Think of a TextBox with a ToolStrip above it, or something like that.
Custom controls are simply classes that inherit from some other control and extend their behavior. To inherit from some control just use the Inherits statement. For example, to inherit a Button you can do
Code:
Public Class CustomButton
Inherits Button
End Class
Now, the class CustomButton will behave exactly like an ordinary button (even though it's only 3 lines of code!). You can now start extending it by adding methods or properties, or by overriding existing properties (using the Overrides statement; just type 'Overrides' and use the Intellisense to see what you can do).
EDIT
I should have added... In order for a class to appear in the Toolbox, all that is required is that it implements IComponent, either directly or indirectly. Since both the UserControl and the Control class (from which, in turn, all other controls such as buttons inherit) implement IComponent, they will all appear in your toolbox. The only thing you need to do is Build your solution successfully.