Joined
Last Seen
0 Reputation Points
Unknown Quality Score
No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
0 Endorsements
Ranked #107.71K
1 Posted Topic
System.IO.DirectoryInfo di = new System.IO.DirectoryInfo("E:\\Testing"); System.IO.FileSystemInfo[] files = di.GetDirectories(); checkedListBox1.Items.AddRange(files); Options opt = new Options(); XmlDocument document = new XmlDocument(); XmlElement rootElement = document.CreateElement("Items"); foreach (var itemObj in opt.checkedListBox1.CheckedItems) { XmlElement newItem = document.CreateElement("Item"); newItem.InnerText =itemObj.ToString(); rootElement.AppendChild(newItem); } document.AppendChild(rootElement); document.Save("test.xml"); hi, error at code?! " Options opt = new Options();"
The End.
samadblaj