Automate open dialog in C#? (From COM OCX)
- by JL
I have a COM OCX control that I need to automate. It has a method called Open() this method is called without parameters, and always displays an open file dialog (standard one with windows).
Is there a way for me to somehow get the file open dialog to open a file I specify , then close the dialog?
I would also not like to use sendkeys or any other variants, because I require the solution to be reliable. So ideally would like to grab a handle on that window, and set the file name programatically, and then execute the open method programatically.
Thanks in advance.