I’m trying to browse a directory in File Open/Save dialog. I could able to get the handle of common dialog as well as its control window. But I don’t know how to provide a filename and click the Save/Open button to Save/Open a file. I couldn’t find the SendMessage parameters needed to perform these actions. Any suggestions?
Share
I’m assuming that you are trying to control a different application, and that’s why you are getting the handle of the window etc.
If that’s the case, you could use SendKeys to send Alt-N to select the name field, then the filename, then Alt-S to hit save.
If you are just trying to use an Open or Save dialog in your own program, then you should use the built-in OpenFileDialog and SaveFileDialog components.