Click here to Skip to main content
15,891,943 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to disable minimization. Pin
Y@rpen15-Oct-07 11:45
Y@rpen15-Oct-07 11:45 
AnswerRe: How to disable minimization. Pin
Anthony Mushrow15-Oct-07 11:51
professionalAnthony Mushrow15-Oct-07 11:51 
GeneralRe: How to disable minimization. [modified] Pin
Y@rpen16-Oct-07 5:01
Y@rpen16-Oct-07 5:01 
GeneralRe: How to disable minimization. Pin
sushicw16-Oct-07 7:32
sushicw16-Oct-07 7:32 
GeneralRe: How to disable minimization. Pin
sushicw13-Nov-07 6:24
sushicw13-Nov-07 6:24 
Questionhow can get a file path when user double click on it such as word files? Pin
B.A15-Oct-07 10:01
B.A15-Oct-07 10:01 
AnswerRe: how can get a file path when user double click on it such as word files? Pin
pmarfleet15-Oct-07 10:48
pmarfleet15-Oct-07 10:48 
GeneralRe: how can get a file path when user double click on it such as word files? Pin
B.A15-Oct-07 11:04
B.A15-Oct-07 11:04 
QuestionCreating items for CheckedListBox Pin
s3rro15-Oct-07 9:45
s3rro15-Oct-07 9:45 
AnswerRe: Creating items for CheckedListBox Pin
Justin Perez15-Oct-07 10:08
Justin Perez15-Oct-07 10:08 
QuestionProject Resource Pin
mihksoft15-Oct-07 8:00
mihksoft15-Oct-07 8:00 
AnswerRe: Project Resource Pin
Justin Perez15-Oct-07 8:26
Justin Perez15-Oct-07 8:26 
GeneralRe: Project Resource Pin
mihksoft15-Oct-07 8:31
mihksoft15-Oct-07 8:31 
GeneralRe: Project Resource [modified] Pin
Kristian Sixhøj15-Oct-07 9:19
Kristian Sixhøj15-Oct-07 9:19 
QuestionConfiguration settings - Howto? [modified] Pin
Phrone15-Oct-07 7:01
Phrone15-Oct-07 7:01 
I'm trying to find out how the config file works.
This is how my config file looks like now.

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<configSections>
<sectionGroup name="userSettings" type="System.Configuration.UserSettingsGroup, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" >
<section name="Settingstest.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" allowExeDefinition="MachineToLocalUser" requirePermission="false" />
</sectionGroup>
</configSections>
<userSettings>
<Settingstest.Properties.Settings>
<setting name="SampleText" serializeAs="String">
<value>foo</value>
</setting>
</Settingstest.Properties.Settings>
</userSettings>
</configuration>

The Sampletext is connected to a textbox and the default value shows.
But how do I make if i want to write a new text and save it for the user, and next time I run the program the new value should show up in the textbox?
I've tried with ConfigurationManager to store the new value, but I only get System.NullReferenceException so I do something wrong.



-- modified at 13:11 Monday 15th October, 2007
AnswerRe: Configuration settings - Howto? Pin
Skippums15-Oct-07 7:16
Skippums15-Oct-07 7:16 
AnswerRe: Configuration settings - Howto? Pin
Justin Perez15-Oct-07 7:30
Justin Perez15-Oct-07 7:30 
QuestionRichTextBox.SelectionBackColor property Pin
Skippums15-Oct-07 6:55
Skippums15-Oct-07 6:55 
AnswerRe: RichTextBox.SelectionBackColor property Pin
mav.northwind15-Oct-07 19:23
mav.northwind15-Oct-07 19:23 
GeneralRe: RichTextBox.SelectionBackColor property Pin
Skippums16-Oct-07 4:18
Skippums16-Oct-07 4:18 
QuestionCatch C++ exception in C# Pin
Not Knuth15-Oct-07 6:35
Not Knuth15-Oct-07 6:35 
AnswerRe: Catch C++ exception in C# Pin
led mike15-Oct-07 6:52
led mike15-Oct-07 6:52 
GeneralRe: Catch C++ exception in C# Pin
Not Knuth15-Oct-07 7:22
Not Knuth15-Oct-07 7:22 
GeneralRe: Catch C++ exception in C# Pin
led mike15-Oct-07 7:45
led mike15-Oct-07 7:45 
GeneralRe: Catch C++ exception in C# Pin
Not Knuth15-Oct-07 8:00
Not Knuth15-Oct-07 8:00 

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.