See the example from this article, in the community content section.
http://msdn.microsoft.com/en-us/libr...47(VS.85).aspx

Regards