private void buttonLogFile_Click(object sender, EventArgs e)
{
SaveFileDialog fd = new SaveFileDialog();
fd.CheckPathExists = true;
fd.OverwritePrompt = true;
fd.AddExtension = true;
fd.DefaultExt = "txt";
fd.Filter = "Text file (*.txt)|*.txt";
if (fd.ShowDialog() == DialogResult.OK)
labelLogFile.Text=fd.FileName;
}