I am wondering how one would make it so that when I use MultiLine textBox it will recognize that there is multiple lines!
Here is how I am opening them with Open File Dialog:
OpenFileDialog ofd2 = new OpenFileDialog();
if (ofd2.ShowDialog() == System.Windows.Forms.DialogResult.OK)
XmlSerializer xs = new XmlSerializer(typeof(Information));
FileStream read = new FileStream(ofd2.FileName, FileMode.Open, FileAccess.Read, FileShare.Read);
Information info = (Information)xs.Deserialize(read);
textBox1.Text = info.Notes;
This is how I am saving them for the time being:
SaveFileDialog sfd = new SaveFileDialog();
sfd.Title = "Save File";
if (sfd.ShowDialog() == System.Windows.Forms.DialogResult.OK)
Information info = new Information();
SaveXML.SaveData(info, sfd.FileName + ".xml");
Hopefully someone can help me do this a better way or explain to me how I can get the opening part of the script to recognize that their are enters in the script...
I have been looking at other programs I use made from C# that others have written and one thing I noticed is when you save on one of the programs it would make you multiline textbox have a ";" after time you hit enter and somehow it would rexognize this on opening of the program, maybe we could figure out how to do this?