Click here to Skip to main content
15,908,901 members
Home / Discussions / C#
   

C#

 
QuestionEncode MPEG2 Pin
Emiliano27-Jan-06 14:54
Emiliano27-Jan-06 14:54 
QuestionSliding window and always on top. Pin
RobS27-Jan-06 12:52
RobS27-Jan-06 12:52 
Questionweb services creation Pin
gregoire.b27-Jan-06 12:10
gregoire.b27-Jan-06 12:10 
GeneralRe: web services creation Pin
mast1727-Jan-06 17:53
mast1727-Jan-06 17:53 
QuestionSingle.Parse() Pin
atanamir27-Jan-06 12:05
atanamir27-Jan-06 12:05 
AnswerRe: Single.Parse() Pin
Colin Angus Mackay27-Jan-06 13:50
Colin Angus Mackay27-Jan-06 13:50 
GeneralRe: Single.Parse() Pin
atanamir27-Jan-06 15:11
atanamir27-Jan-06 15:11 
Questionapp.config file Pin
gregoire.b27-Jan-06 9:14
gregoire.b27-Jan-06 9:14 
Hi,
I have a problem with app.config file.
I put a connection string inside and I tried to retrieve the information in my application in the constructor form , after InitializeComponent().
If I am using:
string ConnString =
System.Configuration.ConfigurationSettings.AppSettings["ConnectionStringSVH"];

ConnString is null after execurion.
If I’am using:
system.Configuration.AppSettingsReader configurationAppSettings = new System.Configuration.AppSettingsReader();
ConnString=((string)(configurationAppSettings.GetValue("ConnStringSVH", typeof(string))));
I got the exception: {"The key 'ConnString' does not exist in the appSettings configuration section." }
I realize that if I put in Debug directory the config file will be deleted when I run in debug the application.
Any thought?
P.S.1. I rename the config file and put the name of myapp.config
2. I have several project in the same solution Is just in the last one that it didn’t work.
Thanks
Gregoire



AnswerRe: app.config file Pin
Michael P Butler27-Jan-06 10:05
Michael P Butler27-Jan-06 10:05 
Questiontype or namespace error in C#(Asp.net) Pin
idreesbadshah27-Jan-06 8:02
idreesbadshah27-Jan-06 8:02 
AnswerRe: type or namespace error in C#(Asp.net) Pin
Colin Angus Mackay28-Jan-06 5:51
Colin Angus Mackay28-Jan-06 5:51 
QuestionEvent for form has changed location Pin
Viktor Nilsson27-Jan-06 7:52
Viktor Nilsson27-Jan-06 7:52 
AnswerRe: Event for form has changed location Pin
Dave Kreskowiak27-Jan-06 8:25
mveDave Kreskowiak27-Jan-06 8:25 
AnswerRe: Event for form has changed location Pin
Robert Rohde27-Jan-06 10:43
Robert Rohde27-Jan-06 10:43 
QuestionGaussian blur troubles Pin
Eugene Kosevtsov27-Jan-06 7:12
Eugene Kosevtsov27-Jan-06 7:12 
AnswerRe: Gaussian blur troubles Pin
User 665827-Jan-06 7:38
User 665827-Jan-06 7:38 
QuestionMarquee Selection in ListView Pin
Alomgir Miah27-Jan-06 6:16
Alomgir Miah27-Jan-06 6:16 
AnswerRe: Marquee Selection in ListView Pin
Dave Kreskowiak27-Jan-06 6:48
mveDave Kreskowiak27-Jan-06 6:48 
QuestionComboBox Pin
aPerfectCircle27-Jan-06 5:52
aPerfectCircle27-Jan-06 5:52 
AnswerRe: ComboBox Pin
LighthouseJ27-Jan-06 7:43
LighthouseJ27-Jan-06 7:43 
QuestionDataColumn type Pin
denizmercan27-Jan-06 5:28
denizmercan27-Jan-06 5:28 
AnswerRe: DataColumn type Pin
tarasn27-Jan-06 9:16
tarasn27-Jan-06 9:16 
GeneralRe: DataColumn type Pin
denizmercan27-Jan-06 10:37
denizmercan27-Jan-06 10:37 
QuestionC# IrDA communication between Pocket-PC and MCP-2155. Pin
dannygilbert327-Jan-06 5:19
dannygilbert327-Jan-06 5:19 
AnswerRe: C# IrDA communication between Pocket-PC and MCP-2155. Pin
leppie27-Jan-06 7:14
leppie27-Jan-06 7:14 

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.