Perhaps, you'll get some ideas from this MSDN article: Common Item Dialog