You could write to the registry using SaveSetting and then retrieve it using the GetSetting function