Click here to Skip to main content
15,899,639 members
Home / Discussions / C#
   

C#

 
GeneralRe: adding information to a file without overwriting old info Pin
Green Fuze27-May-05 10:54
Green Fuze27-May-05 10:54 
QuestionRefresh Crystal Report DataSet Problem? Pin
Old Gun27-May-05 4:56
Old Gun27-May-05 4:56 
AnswerRe: Refresh Crystal Report DataSet Problem? Pin
Grylion5427-May-05 10:35
Grylion5427-May-05 10:35 
GeneralRe: Refresh Crystal Report DataSet Problem? Pin
Old Gun27-May-05 15:32
Old Gun27-May-05 15:32 
GeneralHEEEEEEEEEELLLLP please Pin
albCode27-May-05 4:27
albCode27-May-05 4:27 
GeneralRe: HEEEEEEEEEELLLLP please Pin
Reinier Beeckman27-May-05 4:37
Reinier Beeckman27-May-05 4:37 
GeneralRe: HEEEEEEEEEELLLLP please Pin
MoustafaS27-May-05 5:39
MoustafaS27-May-05 5:39 
GeneralScroll Bar hogging focus Pin
rocky_pulley27-May-05 4:09
rocky_pulley27-May-05 4:09 
GeneralRe: Scroll Bar hogging focus Pin
John Fisher27-May-05 4:35
John Fisher27-May-05 4:35 
GeneralRe: Scroll Bar hogging focus Pin
rocky_pulley27-May-05 5:02
rocky_pulley27-May-05 5:02 
GeneralRe: Scroll Bar hogging focus Pin
John Fisher27-May-05 6:13
John Fisher27-May-05 6:13 
GeneralRe: Scroll Bar hogging focus Pin
rocky_pulley27-May-05 7:52
rocky_pulley27-May-05 7:52 
GeneralRe: Scroll Bar hogging focus Pin
John Fisher27-May-05 10:45
John Fisher27-May-05 10:45 
GeneralWindows.Forms.DataGrid Pin
Reinier Beeckman27-May-05 3:42
Reinier Beeckman27-May-05 3:42 
GeneralRe: Windows.Forms.DataGrid Pin
Alomgir Miah27-May-05 4:17
Alomgir Miah27-May-05 4:17 
GeneralRe: Windows.Forms.DataGrid Pin
Reinier Beeckman27-May-05 4:31
Reinier Beeckman27-May-05 4:31 
GeneralRe: Windows.Forms.DataGrid Pin
Alomgir Miah27-May-05 7:53
Alomgir Miah27-May-05 7:53 
GeneralRe: Windows.Forms.DataGrid Pin
Alomgir Miah27-May-05 8:25
Alomgir Miah27-May-05 8:25 
Generalmscorlib.xml Pin
zuschauer198027-May-05 1:39
zuschauer198027-May-05 1:39 
GeneralTool to convert from Ms Access Database to MYSQL Database Pin
rockxuyenmandem27-May-05 1:27
rockxuyenmandem27-May-05 1:27 
GeneralRe: Tool to convert from Ms Access Database to MYSQL Database Pin
Member 157708727-May-05 2:39
Member 157708727-May-05 2:39 
QuestionConfig file in dll project? Pin
davebarkshire27-May-05 1:08
davebarkshire27-May-05 1:08 
I want to keep a connection string in a config file in a DLL project. I have tried using myappname.dll.config and app.config and have stored the data like this...

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<appSettings>
<add key="constring" value="a_connection_string_goes_here"/>
</appSettings>
</configuration>

and try to retrieve this data using...
strConnectionString = ConfigurationSettings.AppSettings["constring"];

I'm only getting null back. The application doesn't seem to be able to see the config file.

ConfigurationSettings.AppSettings.Keys.Count is zero.
ConfigurationSettings.AppSettings.Count is zero.

Can anyone tell me why this is not working?

Thanks in advance - Dave
AnswerRe: Config file in dll project? Pin
DavidNohejl27-May-05 2:31
DavidNohejl27-May-05 2:31 
AnswerRe: Config file in dll project? Pin
Dave Kreskowiak27-May-05 2:33
mveDave Kreskowiak27-May-05 2:33 
GeneralSmall UI prob Pin
Niklas Ulvinge27-May-05 0:56
Niklas Ulvinge27-May-05 0:56 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.