RegSetting 1.0.1
dotnet add package RegSetting --version 1.0.1
NuGet\Install-Package RegSetting -Version 1.0.1
<PackageReference Include="RegSetting" Version="1.0.1" />
<PackageVersion Include="RegSetting" Version="1.0.1" />
<PackageReference Include="RegSetting" />
paket add RegSetting --version 1.0.1
#r "nuget: RegSetting, 1.0.1"
#:package RegSetting@1.0.1
#addin nuget:?package=RegSetting&version=1.0.1
#tool nuget:?package=RegSetting&version=1.0.1
RegSetting
A simple class to get and set windows registry setting
Installation
Include this package in the project file
Usage
In Winform program.cs, add this statement to initialize Registry setting for that particular app:
RegistrySetting.CurrentUserKey = "YourProgramName";
And then from anywhere in the application do the following to save application setting to the system registry:
for example:
RegistrySetting.SetRegistryValue(nameof(txtInvoiceNbr), txtInvoiceNbr.Text);
And for retrieving the registry setting:
txtInvoiceNbr.Text = RegistrySetting.GetRegistryValue(nameof(txtInvoiceNbr));
This will retain your default settings in Windows registry
Examples
Dependencies
Microsoft.NetCore.App
Contributing
Any new ideas on how to enhance this class without adding much complexity, please adhere to SOLID principle
License
This project is licensed under the MIT License(LICENSE).
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net8.0
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.