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

Ansible - ERROR! the field 'hosts' is required but was not set -

customize file_field button ruby on rails -

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