namespace TreeViewControl { [Serializable] public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void button1_Click(object sender, EventArgs e) { string n = textBox1.Text; if (treeView1.SelectedNode == null) { treeView1.Nodes.Add(n, n); } else { treeView1.SelectedNode.Nodes.Add(n, n); } } } }
Quote:Serialization is the process of converting an object into a stream of bytes in order to store the object or transmit it to memory, a database, or a file. Its main purpose is to save the state of an object in order to be able to recreate it when needed. The reverse process is called deserialization.
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)