Click here to Skip to main content
15,886,038 members
Home / Discussions / C#
   

C#

 
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 
GeneralRe: Catch C++ exception in C# Pin
led mike15-Oct-07 8:05
led mike15-Oct-07 8:05 
GeneralRe: Catch C++ exception in C# Pin
Not Knuth15-Oct-07 8:15
Not Knuth15-Oct-07 8:15 
AnswerRe: Catch C++ exception in C# Pin
Liam O'Hagan15-Oct-07 20:57
Liam O'Hagan15-Oct-07 20:57 
GeneralRe: Catch C++ exception in C# Pin
Not Knuth16-Oct-07 5:26
Not Knuth16-Oct-07 5:26 
AnswerRe: Catch C++ exception in C# Pin
Marshall16-Oct-07 6:11
Marshall16-Oct-07 6:11 
GeneralRe: Catch C++ exception in C# Pin
Not Knuth16-Oct-07 7:47
Not Knuth16-Oct-07 7:47 
QuestionPrevent Monitor Standby and ScreenSaver Activation Pin
Sukhjinder_K15-Oct-07 6:05
Sukhjinder_K15-Oct-07 6:05 

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.