TSwitch is a visual component you can use to put a switch on your applications, that can be turned on or off. Its many properties allow you to chose the interface that is most suitable for your application. It is fast, and easy to use. But if you don't like it, you can always use its simple code as an example for your own components.