Yeah there's probably is a complicated API way, but this works.

Maybe http://www.mvps.org/vbnet/ has some API ways, but I don't know if it's worth the surfing