Click here to Skip to main content
15,888,286 members
Home / Discussions / C#
   

C#

 
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 
GeneralRe: Small UI prob Pin
John Fisher27-May-05 4:37
John Fisher27-May-05 4:37 
GeneralRe: Small UI prob Pin
Niklas Ulvinge27-May-05 4:47
Niklas Ulvinge27-May-05 4:47 
GeneralRe: Small UI prob Pin
John Fisher27-May-05 6:16
John Fisher27-May-05 6:16 
GeneralRe: Small UI prob Pin
Niklas Ulvinge27-May-05 6:23
Niklas Ulvinge27-May-05 6:23 
GeneralRe: Small UI prob Pin
John Fisher27-May-05 6:36
John Fisher27-May-05 6:36 
GeneralRe: Small UI prob Pin
Niklas Ulvinge27-May-05 6:40
Niklas Ulvinge27-May-05 6:40 
GeneralRe: Small UI prob Pin
John Fisher27-May-05 10:44
John Fisher27-May-05 10:44 
GeneralStatic class Pin
LIUCKAS27-May-05 0:01
LIUCKAS27-May-05 0:01 
GeneralRe: Static class Pin
User 665827-May-05 0:37
User 665827-May-05 0:37 
GeneralRe: Static class Pin
Andrew Kirillov27-May-05 0:37
Andrew Kirillov27-May-05 0:37 
GeneralRe: Static class Pin
Niklas Ulvinge27-May-05 0:48
Niklas Ulvinge27-May-05 0:48 
GeneralRe: Static class Pin
Robert Rohde27-May-05 5:21
Robert Rohde27-May-05 5:21 
GeneralRe: Static class Pin
Niklas Ulvinge27-May-05 6:19
Niklas Ulvinge27-May-05 6:19 
GeneralRe: Static class Pin
Wraith227-May-05 0:51
Wraith227-May-05 0:51 

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.