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

Popular posts from this blog

c++ - list<myClass<int> * > sort -

SoapUI on windows 10 - high DPI/4K scaling issue -

java - why am i getting a "cannot resolve method" error on getApplication? -