Copying from one to another text box:
Use the solution 1 from RMC[
^]:
textbox2.Text = textbox1.Text;
For copying files you can use this:
using System;
using System.IO;
namespace FileSystemIO
{
class Program
{
static void Main(string[] args)
{
string sourceFile = "C:\Temp\test.txt";
string destinationFile = "C:\Temp\test_copied.txt";
try
{
File.Copy(sourceFile, destinationFile);
Console.WriteLine("File copied successfully");
}
catch(Exception ex)
{
Console.WriteLine("Copying file failed: " + ex.Message);
}
Console.ReadKey();
}
}
}
More info about the
System.IO.File.Copy() method[
^] can you find on the MSDN page.
cheers,
Marco Alessandro Bertschi