Also ich würde die Sachen in der Registry speichern
Zum schreiben
Delphi-Quellcode:
with TRegistry.Create do
begin
RootKey:=HKEY_LOCAL_MACHINE;
OpenKey('SOFTWARE\'+ProgrammName,true);
WriteBool('TRAY',Checkbox1.Checked);
end;
Zum lesen
Delphi-Quellcode:
with TRegistry.Create do
begin
RootKey:=HKEY_LOCAL_MACHINE;
OpenKey('SOFTWARE\'+ProgrammName,true);
if ValueExists('TRAY')then
if ReadBool('TRAY')then
begin
Checkbox1.Checked:=true;
end;
end;