Thanks. Thanks a lot. Really didnt know about the api. Even MSDN has an example.
Thanks once again