An exe generates a myexe.exe.cfg file by default. However, if I add a app.config to a dll it does not generate a similar file. I would like my control (derived from Label) to have it's own key/value configuration file. Thanks Phil
User 2657147
Posts
-
building a app.config file in a control (dll) -
using configuration settings in a dll.I have a dll (a control derived from Label) and I would like to use the simple key/value configuration settings provided by App.config (or similar file). Visual Studio gladly creates this resource for me, encouraging me to think a dll can have its own settings. This statement will always get a setting from the exe, what ever exe is using the dll. string dbText = ConfigurationSettings.AppSettings["Foxpro_template"]; How can I have config settings for the dll control? Lastly, I realize the configuration manager will manage 'machine' wide setting for me. That is nice but it always wants to place the user and machine settings under a 'mydocuments' folder. I would like to keep the entire suite under one folder so a user could duplicate an install with a simple copy and paste command. That is I want to keep machine and user settngs under folder C:\myproduct not c:\mydocuments. Any suggested readings or ideas? Thanks Phil