Fortunately Dnn is open source, so it's just a matter of finding the right file to see the example. In this case, check out here
You don't need a separate control for this. You can do it within a settings control.
If you're new to Dnn Module Development, I strongly recommend checking out Christoc's Templates. They have examples and patterns for common Dnn module requirements.