Hi, thanks for all the help with my code so far, I just have one more nagging chink in the chain.
This is my code for saving my file which works as expected.
Person Bob = new Person(); Bob.CallSign = textBox1.Text; Bob.Freq = textBox2.Text; Bob.Time = textBox3.Text; Bob.fName = textBox4.Text; Bob.lName = textBox5.Text; Bob.Country = textBox6.Text; Stream filestream = new FileStream((textBox1.Text), FileMode.Create, FileAccess.Write, FileShare.None); BinaryFormatter bf = new BinaryFormatter(); bf.Serialize(filestream, Bob); filestream.Close();
I would like to be able to change the default save directory by bringing up a file dialog but without changing the name which is currently textbox one.
My trouble is the save location is where i've put textbox1 so i'm stuck with a problem.