Sorry I was away for two days, cudn't reply to this. Usually .NET threads aren't very active here as we have very few .NET coders here. Most people are into C/C++, Java & Scripting. Threads on those topics are likely to move much faster. Anyways, here is your solution.
You need to use a DataSet to hold your config options. I'm specifically talking about dataset, coz this control has inbuilt functions called
ReadXML and
WriteXML - which will read/write the contained data into XML formatted files. If your dataset has two columns - one for the Configuration Option Name and the second one for it's value - that does the job

Best is to use the following code to create a config file reader/writer class that will handle all your config tasks. Here's how:
CODE
Imports System.IO
....
.....
Private ConfigFileName as String = "config.ini"
Private DSConfig As New DataSet ("Options")
...
....
.....
' CODE: For Reading XML config options - best to put it in a separate Sub
' Upon Form Load try reading the file - if it exists, populate the dataset with read values,
' else simply create a blank dataset with two columns - OptionName and OptionValue
If File.Exists (ConfigFileName) Then
'Read XML and populate
DSConfig.ReadXml (ConfigFileName)
Else
'Create blank dataset with two columns
Dim dt As New DataTable ("Values")
dt.Columns.Add("OptionName", System.Type.GetType("System.String"))
dt.Columns.Add("OptionValue", System.Type.GetType("System.String"))
DSConfig.Tables.Add(dt)
End If
...
....
' CODE: For Writing out the XML data. Again - best put into a separate sub
DSConfig.WriteXml (ConfigFileName)
....
Hope this helps you get started with it - if you need more code demonstrations or example of a full blown class, post again and I'll guide you to the finalized solution.
Regards,
m^e
Comment/Reply (w/o sign-up)