c# - saveFileDialog How to save to user input? -
i have added class file
if (savefiledialog1.showdialog() == dialogresult.ok) { process.start(url); }
but when process starts, automatically downloads file , puts on desktop. how can make downloads user input in savefiledialog1?
use this:
if (savefiledialog1.showdialog() == dialogresult.ok) { system.net.webclient web = new webclient(); web.downloadfile(url, savefiledialog1.filename); web.dispose(); }
Comments
Post a Comment