I have an Outlook 2013 VSTO addin. I'm trying to center my saveFileDialog on the parent. I read that you can overload the ShowDialog() method with a IWin32Window handle. I can't find any examples to show how to get this IWin32Window handle. How can I get the IWin32Window handle for Outlook so I can pass it to ShowDialog() and center the saveFileDialog() on the parent window.
From what I read just passing in the handle isn't enough. Seems there is an extra step but I can't for the life of me find it.
If anyone can provide an example of how to capture the handle and then center the window on the parent for a saveFileDialog() it would be a huge help.
Thanks