Click here to Skip to main content
15,894,343 members
Home / Discussions / C#
   

C#

 
AnswerRe: Storing/rettrieving windowbounds Pin
Pete O'Hanlon30-Oct-06 4:43
mvePete O'Hanlon30-Oct-06 4:43 
AnswerRe: Storing/rettrieving windowbounds Pin
S. Senthil Kumar30-Oct-06 7:56
S. Senthil Kumar30-Oct-06 7:56 
GeneralRe: Storing/rettrieving windowbounds Pin
Bekjong30-Oct-06 21:49
Bekjong30-Oct-06 21:49 
QuestionHelp and Hints needed / Motion Tracking [modified] Pin
luedfe30-Oct-06 3:06
luedfe30-Oct-06 3:06 
AnswerRe: Help and Hints needed / Motion Tracking Pin
Baconbutty30-Oct-06 3:39
Baconbutty30-Oct-06 3:39 
GeneralRe: Help and Hints needed / Motion Tracking Pin
luedfe30-Oct-06 3:45
luedfe30-Oct-06 3:45 
GeneralRe: Help and Hints needed / Motion Tracking Pin
superwave22-Aug-09 22:05
superwave22-Aug-09 22:05 
QuestionOld values in settings Pin
kct30-Oct-06 2:20
kct30-Oct-06 2:20 
Hello everyone,

I have a problem with my Settings

I want to save my connection string in the Settings.
I initialize a form and fill the textbox:
<br />
Settings.settings = Settings.Default;<br />
tb_ConnectionString.Text = settings.ConnectionString;<br />


I can change the string in the gui:
<br />
settings.ConnectionString = tb_ConnectionString.Text;<br />


Now, everything is fine. For testing I changed the connection string in the gui and this changed string appears in the settings.
I changed the connection string in Visual Studio back to the correct string.
This string appears in the settings, in the Settings.Designer.cs as the default value and of cause in the App.config

Now I start the project again an while initializing:
<br />
Settings.settings = Settings.Default;<br />
tb_ConnectionString.Text = settings.ConnectionString;<br />

setting.ConnectionString is wrong. It is the old/changed string

I removed the setting key, recompiled, added again the connection key to the settings but again the old connection string.

I searched for old string in my project but found nothing.
Restart of Visual Studio...again th old connection string.

How does VS get the old connection string and how can I avoid that?

Thanks for help.
KCT
AnswerRe: Old values in settings Pin
Christian Graus30-Oct-06 2:38
protectorChristian Graus30-Oct-06 2:38 
AnswerRe: Old values in settings Pin
kct30-Oct-06 23:32
kct30-Oct-06 23:32 
QuestionUnselecting Items in a Listbox ?? Pin
imnotso#30-Oct-06 1:40
imnotso#30-Oct-06 1:40 
AnswerRe: Unselecting Items in a Listbox ?? Pin
Robert Rohde30-Oct-06 2:00
Robert Rohde30-Oct-06 2:00 
AnswerRe: Unselecting Items in a Listbox ?? Pin
saqib8230-Oct-06 2:30
saqib8230-Oct-06 2:30 
Questionhow to implement cache memory mechanism in C# Pin
kalaveer30-Oct-06 1:07
kalaveer30-Oct-06 1:07 
AnswerRe: how to implement cache memory mechanism in C# Pin
Pete O'Hanlon30-Oct-06 2:47
mvePete O'Hanlon30-Oct-06 2:47 
QuestionPackaging Setup Files in a single File [modified] Pin
wasife30-Oct-06 0:42
wasife30-Oct-06 0:42 
AnswerRe: Packaging Setup Files in a single File Pin
FlyOnIT30-Oct-06 1:34
FlyOnIT30-Oct-06 1:34 
QuestionFile permission in C#.net Pin
Kunal Sagwaria29-Oct-06 23:53
Kunal Sagwaria29-Oct-06 23:53 
QuestionEveryone can access my file Pin
Kunal Sagwaria29-Oct-06 23:51
Kunal Sagwaria29-Oct-06 23:51 
QuestionDesign time toolstrips Pin
Gomac29-Oct-06 23:45
Gomac29-Oct-06 23:45 
QuestionRegarding nested structs: Instance Field Initializers Pin
Mairaaj Khan29-Oct-06 23:14
professionalMairaaj Khan29-Oct-06 23:14 
AnswerRe: Regarding nested structs: Instance Field Initializers Pin
Pete O'Hanlon29-Oct-06 23:48
mvePete O'Hanlon29-Oct-06 23:48 
GeneralRe: Regarding nested structs: Instance Field Initializers Pin
Mairaaj Khan30-Oct-06 0:09
professionalMairaaj Khan30-Oct-06 0:09 
GeneralRe: Regarding nested structs: Instance Field Initializers Pin
kalaveer30-Oct-06 1:24
kalaveer30-Oct-06 1:24 
GeneralRe: Regarding nested structs: Instance Field Initializers Pin
Pete O'Hanlon30-Oct-06 1:39
mvePete O'Hanlon30-Oct-06 1:39 

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.