IN this way you can resolve your problme
1. Make your configuration file like this {applicationname}.exe.config . Let say your application exe name is test so the configuration file name will be test.exe.config.
2 .Put the configuration file in the same directory where is your EXE is present .
3. use following line in your code
string str = ConfigurationSettings.AppSettings["filetype"];
By this you can can get it . I am wokring with this kind of applications and working for me . If you need any help then mail me . I am also working wiht VS 2003 . If you need sample application i can post you
Regards
jainvikr2
|