Autor Beitrag
aloneboy
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 45



BeitragVerfasst: Mo 05.01.15 23:17 
Hallo zusammen,

versuche gerade verzweifelt Werte in die Settings zu schreiben und sie zu speichern.
ausblenden C#-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
  Properties.Settings.Default.Anrede = checkBox1.Checked;
                Properties.Settings.Default.Vorname = checkBox2.Checked;
                Properties.Settings.Default.Nachname = checkBox3.Checked;
                Properties.Settings.Default.Strasse = checkBox4.Checked;
                Properties.Settings.Default.PLZ = checkBox5.Checked;
                Properties.Settings.Default.Ort = checkBox6.Checked;
                Properties.Settings.Default.VorwahlTel = checkBox7.Checked;
                Properties.Settings.Default.TelNr = checkBox8.Checked;
                Properties.Settings.Default.VorwahlFax = checkBox9.Checked;
                Properties.Settings.Default.FaxNr = checkBox10.Checked;
                Properties.Settings.Default.EMail = checkBox11.Checked;
                Properties.Settings.Default.AuftragBelegNr = checkBox12.Checked;
                Properties.Settings.Default.Nachricht = checkBox13.Checked;
                Properties.Settings.Default.interneNachricht = checkBox14.Checked;
             
                Properties.Settings.Default.Suchen = checkBox17.Checked;
                Properties.Settings.Default.History = checkBox16.Checked;
                Properties.Settings.Default.MeineTickets = checkBox18.Checked;
                Properties.Settings.Default.Auftragsstand = checkBox19.Checked;
                Properties.Settings.Default.Uhr_Datum = checkBox15.Checked;
               

                Properties.Settings.Default.AnzeigePos1 = "Panel_Suche";
                Properties.Settings.Default.AnzeigePos2 = "leer";
                Properties.Settings.Default.AnzeigePos3 = "leer";
                Properties.Settings.Default.AnzeigePos4 = "leer";
                Properties.Settings.Default.AnzeigePos5 = "leer";
               
                Properties.Settings.Default.Save();


das Problem ist, das die letzten 5 Werte nicht gespeichert werden, warum?

Gruß
aloneboy Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 45



BeitragVerfasst: Di 06.01.15 00:35 
Danke Leute,
habe den Fehler gefunden. Die Werte wurden beim schließen der Anwendung überschrieben woran ich nicht mehr gedacht haben.