using Microsoft.Win32;
string ConnectionStringValues = TextBoxServer; + TextBoxUID;...;
RegistryKey regkey = Registry.CurrentUser.CreateSubKey(@"Software\YourSoftwareName\RegistryKey");
regkey.SetValue("ConnectionStringName", "ConnectionStringValues");
RegistryKey regkey = Registry.CurrentUser.CreateSubKey(@"Software\YourSoftwareName\RegistryKey");
regkey.GetValue("ConnectionStringName").ToString();
/*
Don't forget to create the registry key first in the registry
Open Run -> Type in the command regedit,
Expand HKEY_CURRENT_USER,
Locate and RightClick on Software folder,
New -> Key (Name it ConnectionStringName or any other name you prefer),
Right Click on the folder you created and choose: New ->String Value
You can leave the value field blank or initialize it with your current connection string
Also remember to include these registries when building your installer
Regards
*/