I have an checkedlistbox in one form Form1,and an treeview in another form Form2,i want to retain state of checkedlistbox in Form2 and create XML dynamically and finally populate treeview..
System.IO.Direc toryInfo di = new System.IO.Direc toryInfo("E:\\T esting");
//System.IO.FileS ystemInfo[] files = di.GetFileSyste mInfos();
System.IO.FileS ystemInfo[] files = di.GetDirectori es();
checkedListBox1 .Items.AddRange (files);
Properties.Sett ings.Default.Ch eckedItems = Convert.ToStrin g(files);
Properties.Sett ings.Default.Sa ve();
The above one is the code which i am using to store state of checkedlistbox. .
Can anyone please help me with this???
System.IO.Direc toryInfo di = new System.IO.Direc toryInfo("E:\\T esting");
//System.IO.FileS ystemInfo[] files = di.GetFileSyste mInfos();
System.IO.FileS ystemInfo[] files = di.GetDirectori es();
checkedListBox1 .Items.AddRange (files);
Properties.Sett ings.Default.Ch eckedItems = Convert.ToStrin g(files);
Properties.Sett ings.Default.Sa ve();
The above one is the code which i am using to store state of checkedlistbox. .
Can anyone please help me with this???