Here is a vb-world tip that seems to be what you are looking for:

http://www.vb-world.net/graphics/tip104.html

Hope this helps.