I am new to winforms. When I am trying to save a file in winforms with the code below it is giving me an error that says: URI formats are not supported.
Please tell me how I can save the file from source path to destination path. Thanks in advance. Here is my code:
private void BtnBussinessBalanceSheet_Click(object sender, EventArgs e)
{
var sourceFile = "http://112.196.33.86:131/Documents/BussinessDocuments/";
if (BrwsBussinessTaxReturn.ShowDialog() == DialogResult.OK)
{
BrwsBussinessTaxReturn.Filter = "Excel Files|*.xls;*.xlsx;*.xlsm|Text|*.txt|Office Files|*.doc;*.xls;*.ppt";
File.Copy(BrwsBussinessTaxReturn.FileName, sourceFile + BrwsBussinessTaxReturn.SafeFileName); //error occured
}
}