A
Andy
I need to write a VB.NET WinForms app. For this purpose I need to keep some
settings of the application, like many other Windows applications do.
The most obvious solution is to store settings in the XML file or registry.
If it's an XML file, then I need the following:
1. Create XSD schema, and be able to validate XML file with the settings
against that schema (How would I store the schema, if it's a class library,
for example? Would the VB.NET compiler store XSD file in a DLL?)
2. Manually create a structure that would keep all settings internally.
3. Write a routine that would parse XML file first into an XML document
object, and then into the internal structure (see step 2).
4. Bind Win Form (settings screen) to the internal structure populated with
the settings.
And likewise (to write settings)
1. Update internal settings structure with the settings from the Win Form
2. Write a routine that would store settings in the XML document, and then
flush them into a file.
Are there any other ways of storing/editing settings in VB.NET?
Thanks in advance.
settings of the application, like many other Windows applications do.
The most obvious solution is to store settings in the XML file or registry.
If it's an XML file, then I need the following:
1. Create XSD schema, and be able to validate XML file with the settings
against that schema (How would I store the schema, if it's a class library,
for example? Would the VB.NET compiler store XSD file in a DLL?)
2. Manually create a structure that would keep all settings internally.
3. Write a routine that would parse XML file first into an XML document
object, and then into the internal structure (see step 2).
4. Bind Win Form (settings screen) to the internal structure populated with
the settings.
And likewise (to write settings)
1. Update internal settings structure with the settings from the Win Form
2. Write a routine that would store settings in the XML document, and then
flush them into a file.
Are there any other ways of storing/editing settings in VB.NET?
Thanks in advance.