Click here to Skip to main content
15,896,557 members
Home / Discussions / C#
   

C#

 
AnswerRe: Properties.Settings.Default.Save() does not work Pin
Mertli Ozgur Nevres21-Jul-06 1:52
Mertli Ozgur Nevres21-Jul-06 1:52 
QuestionUnauthorizedAccessException Pin
sjembek20-Jul-06 23:55
sjembek20-Jul-06 23:55 
AnswerRe: UnauthorizedAccessException Pin
leppie21-Jul-06 1:02
leppie21-Jul-06 1:02 
GeneralRe: UnauthorizedAccessException Pin
sjembek21-Jul-06 1:27
sjembek21-Jul-06 1:27 
GeneralRe: UnauthorizedAccessException Pin
leppie21-Jul-06 2:10
leppie21-Jul-06 2:10 
AnswerRe: UnauthorizedAccessException Pin
Vasudevan Deepak Kumar21-Jul-06 1:41
Vasudevan Deepak Kumar21-Jul-06 1:41 
GeneralRe: UnauthorizedAccessException Pin
sjembek21-Jul-06 2:06
sjembek21-Jul-06 2:06 
Questionnamevaluecollection in user settings Pin
Badscher20-Jul-06 23:22
Badscher20-Jul-06 23:22 
Hi,

I tried to save some information in an user.config file. I tried to save a hashtable, but it doesn't work. Thats why I tried to save an arraylist and it works. After that I would like to save a NameValueCollection, but this isn't saved like the arraylist?!?! WHY???? Confused | :confused:

[CSHARP]
public System.Collections.ArrayList Setting
{
get
{
if (mySettings == null)
mySettings = new Specifications.Settings1();

return mySettings.Table;

}
set
{
if (mySettings == null)
mySettings = new Specifications.Settings1();

mySettings.Table = value;

mySettings.Save();
}
}

public System.Collections.Specialized.NameValueCollection Setting2
{
get
{
if (mySettings == null)
mySettings = new Specifications.Settings1();

return mySettings.Table2;

}
set
{
if (mySettings == null)
mySettings = new Specifications.Settings1();

mySettings.Table2 = value;

mySettings.Save();
}
}
[/CSHARP]
AnswerRe: namevaluecollection in user settings Pin
Badscher21-Jul-06 1:41
Badscher21-Jul-06 1:41 
AnswerRe: namevaluecollection in user settings Pin
LongRange.Shooter21-Jul-06 4:48
LongRange.Shooter21-Jul-06 4:48 
QuestionIsolatedStorageFile.GetStore() problem Pin
Super Lloyd20-Jul-06 23:12
Super Lloyd20-Jul-06 23:12 
AnswerRe: IsolatedStorageFile.GetStore() problem Pin
leppie21-Jul-06 2:22
leppie21-Jul-06 2:22 
GeneralRe: IsolatedStorageFile.GetStore() problem Pin
Super Lloyd21-Jul-06 3:17
Super Lloyd21-Jul-06 3:17 
QuestionHow do i check if an object can be cast to a valid SQLDbType? Pin
Red_Wizard_Shot_The_Food20-Jul-06 22:39
Red_Wizard_Shot_The_Food20-Jul-06 22:39 
AnswerRe: How do i check if an object can be cast to a valid SQLDbType? Pin
Robert Rohde20-Jul-06 22:46
Robert Rohde20-Jul-06 22:46 
GeneralRe: How do i check if an object can be cast to a valid SQLDbType? Pin
Red_Wizard_Shot_The_Food20-Jul-06 23:24
Red_Wizard_Shot_The_Food20-Jul-06 23:24 
AnswerRe: How do i check if an object can be cast to a valid SQLDbType? [modified] Pin
Martin#20-Jul-06 23:41
Martin#20-Jul-06 23:41 
GeneralRe: How do i check if an object can be cast to a valid SQLDbType? Pin
Robert Rohde20-Jul-06 23:52
Robert Rohde20-Jul-06 23:52 
GeneralRe: How do i check if an object can be cast to a valid SQLDbType? Pin
Red_Wizard_Shot_The_Food20-Jul-06 23:53
Red_Wizard_Shot_The_Food20-Jul-06 23:53 
GeneralRe: How do i check if an object can be cast to a valid SQLDbType? Pin
Robert Rohde20-Jul-06 23:54
Robert Rohde20-Jul-06 23:54 
GeneralRe: How do i check if an object can be cast to a valid SQLDbType? Pin
Red_Wizard_Shot_The_Food21-Jul-06 0:00
Red_Wizard_Shot_The_Food21-Jul-06 0:00 
GeneralRe: How do i check if an object can be cast to a valid SQLDbType? Pin
Robert Rohde21-Jul-06 0:21
Robert Rohde21-Jul-06 0:21 
GeneralRe: How do i check if an object can be cast to a valid SQLDbType? Pin
Red_Wizard_Shot_The_Food21-Jul-06 0:29
Red_Wizard_Shot_The_Food21-Jul-06 0:29 
GeneralRe: How do i check if an object can be cast to a valid SQLDbType? Pin
Robert Rohde21-Jul-06 1:11
Robert Rohde21-Jul-06 1:11 
AnswerRe: How do i check if an object can be cast to a valid SQLDbType? Pin
Andrei Ungureanu20-Jul-06 22:47
Andrei Ungureanu20-Jul-06 22:47 

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.