Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27350

Store configuration file within app

$
0
0
Hi,

I have developed a standalone program, I wonder is it possible to store the configuration details inside the program instead of say creating a new .ini configuration files and read from there?

I have googled and tried several methods:

1. VB Project Properties > Resources - I couldn't change the value at runtime as it is readonly.

2. VB Project Properties > Settings. I created two sample String with Application and User Scope.

2.1 I encountered issue on Application Scope which is similar to using Resources String which I could not change the value at runtime due to readonly.

2.2 I tried using User Scope but I realized the program created a file .config file in c:\users\name\appdata\local\programname\programrandomstring\ver\.

I'm not sure whether my requirement is achievable i.e. store/overwrite configuration string in the program itself without creating additional files in any folders?

Please advise.

Thanks.

Viewing all articles
Browse latest Browse all 27350

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>