I am creating a windows application which required Dynamic Connection String in the app starting (user need to provide db credentials through a form), After entering the connection credentials user redirected to new win form
Everything is working fine but how can I pass my dynamic connection to another form.
I tried to save it to App variable but I couldn’t (I think its read only)
Also I tried save it to registry but can’t retrieve values.
Is there any other option available ? like writing & retrieving ConString to a text file or XML
Thanks
This how you can get and set registry values :
It’s working a 100%, If you please mark this answer as Right