look it up in MSDN, don't have time to post example now, will post it later