How to reset the starting position of FileDialog
Posted on 2010-01-11
I have a VB6 application that interacts with a VB.NET application by sending it 'MOUSEMOVE, BUTTONDOWN, etc.' events and all is working OK except for one thing.
Sometimes the sent events result in VB.NET application opening a FileDialog and my problem is that dialog position & size can change, depending on whether user had altered those manually. If that happens then subsequent mouse movement and button clicks could be misdirected due to FileDialog being in wrong place.
To resolve that issue I'd like to restore FileDialog default opening position & size at the start of those event so when opened it will always be in a known position and (default) size. So my question is how can I get & set opening position of a FileDialog to default values from the VB6 application?