Below are a selection of VB code samples. Feel free to use any of them in your own projects.
Creating singleton objects
Allowing numerc values only