Lid |
|
Je moet dan met XML werken.
Je programma maakt een XML bestand aan bijvoorbeeld:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<configSections>
<sectionGroup name="userSettings" type="System.Configuration.UserSettingsGroup, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" >
<section name="Je_Programma.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" allowExeDefinition="MachineToLocalUser" requirePermission="false" />
</sectionGroup>
</configSections>
<userSettings>
<Je_Programma.Properties.Settings>
<setting name="JeSettingNaam" serializeAs="String">
<value>Je setting value</value>
</setting>
</Je_Programma.Properties.Settings>
</userSettings>
</configuration>
<?xml version="1.0" encoding="utf-8" ?> <configuration> <configSections> <sectionGroup name="userSettings" type="System.Configuration.UserSettingsGroup, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" > <section name="Je_Programma.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" allowExeDefinition="MachineToLocalUser" requirePermission="false" /> </sectionGroup> </configSections> <userSettings> <Je_Programma.Properties.Settings> <setting name="JeSettingNaam" serializeAs="String"> <value>Je setting value</value> </setting> </Je_Programma.Properties.Settings> </userSettings> </configuration>
Maar de settings worden in de applicatie zelf opgeslagen. Om dit te bereiken gewoon de settings functie in Visual Studio 2005 gebruiken. |