Instead of using an ini
file, you should be using a .config
file - that's the normal configuration option for .NET application with quite a lot of built in support.
You should be able to add an app.config
file to your project from the new item screen in Visual Studio.
Take a look at Configuration Files on MSDN for more detail and the AppSettings
class (this page includes some examples).