http://www.vbforums.com/showthread.php?p=3536799
and it looks like what you are trying to do.
Good Luck