create main configuration file for solution.

M

Mr. X.

Hello.
How can I create main configuration file for my solution (Win-Form : VS
2008. VB.NET), like a general ini-file.

Thanks :)
 
M

Mr. Arnold

Mr. X. said:
Hello.
How can I create main configuration file for my solution (Win-Form : VS
2008. VB.NET), like a general ini-file.

It's called an app.config. There is a name space you can use to mainulupate
the app.config from a program.
 
M

Mr. X.

I see it on the project source directory (not for solution).
I cannot see it on the release directory.

Is there any convention to read / write from app.config :
I want to use it for main application (connectionString for mySql).
When calling another exe file from the main application - should I pass the
connectionString as a parameter,
or it is preferred that each project has it's own app.config, and not pass
parameter trough?

Thanks :)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top