I’m creating a c# winforms desktop program with dropbox support. The problem comes in where the user must select the file (from dropbox) that he would like to open. Is it possible to use the
OpenFileDialog to display the content of the person’s dropbox account? I know you can just direct the openFileDialog to the local dropbox folder, but I don’t want to do that. This will mean that the person must have dropbox installed on that computer before they can use this function of my program. If you can’t do this, how will you use tree and list views to create your own openFileDialog? I would like to keep the design the same as the standard openFileDialog. I have read that you can create a rapper class for customising the openFileDialog but don’t know how this will work.
I have looked on google but can’t find what I’m looking for. Any advice or examples will be appreciated.
I’m using dotnet 4.5 and the dropnet library.
OpenFileDialog only shows existing files.
Your program can act like drop box client application and load all files to the client in a local folder. Then when you show the
OpenFileDialog you can set that folder as
InitialDirectory of the file dialog.
Also if you don't want to load all files, you can create dummy (empty) files on the local folder and after the user choose to show the file from
OpenFileDialog, then download the file and show it to the user.