Click here to Skip to main content
15,889,200 members
Home / Discussions / C#
   

C#

 
GeneralRe: Way to monitor API calls of programs? [modified] Pin
bbranded20-Mar-09 14:11
bbranded20-Mar-09 14:11 
GeneralRe: Way to monitor API calls of programs? Pin
Garth J Lancaster20-Mar-09 14:23
professionalGarth J Lancaster20-Mar-09 14:23 
GeneralRe: Way to monitor API calls of programs? Pin
bbranded20-Mar-09 14:37
bbranded20-Mar-09 14:37 
GeneralRe: Way to monitor API calls of programs? Pin
Garth J Lancaster20-Mar-09 14:40
professionalGarth J Lancaster20-Mar-09 14:40 
QuestionHL7 Pin
M.Ambigai20-Mar-09 11:48
M.Ambigai20-Mar-09 11:48 
AnswerRe: HL7 Pin
Garth J Lancaster20-Mar-09 12:36
professionalGarth J Lancaster20-Mar-09 12:36 
AnswerRe: HL7 Pin
#realJSOP21-Mar-09 3:35
mve#realJSOP21-Mar-09 3:35 
QuestionArrayList stored in Application Settings Pin
DaDennis1220-Mar-09 11:34
DaDennis1220-Mar-09 11:34 
In my application I use the Application Settings to store user preferences (such as preferred colors, size of the window, which parts or my program to hide or show etc)

But I'd also like to store an ArrayList in the settings.

Now I already have an ArrayList stored containing some simple integers (column widths), which works perfectly.

However, when I try to store an ArrayList containing a custom class (Group) which contains a string (name) and a boolean (isVisible) and I start up my application again (it saves the settings on exiting) the setting is empty, as if the arraylist never contained any groups.

At first I thought it was the custom class I made which would cause the problem, but I also store some values which are a custom class in the settings, so I doubt that's it.


I guess my problem is obvious here, why won't the Application Setting remember my ArrayList containing Groups?


For those interested in the Group class code:

public class Group
{
    private string name;
    private bool visible;

    // Constructor
    public Group(string name)
    {
        this.name = name;
    }

    #region Getters and Setters
    public string Name
    {
        get { return name; }
        set { name = value; }
    }

    public bool IsVisible
    {
        get { return visible; }
        set { visible = value; }
    }
    #endregion
}

AnswerRe: ArrayList stored in Application Settings Pin
DaveyM6920-Mar-09 11:44
professionalDaveyM6920-Mar-09 11:44 
GeneralRe: ArrayList stored in Application Settings [modified] Pin
DaDennis1220-Mar-09 11:57
DaDennis1220-Mar-09 11:57 
GeneralRe: ArrayList stored in Application Settings Pin
DaveyM6920-Mar-09 12:33
professionalDaveyM6920-Mar-09 12:33 
GeneralRe: ArrayList stored in Application Settings Pin
DaDennis1220-Mar-09 12:38
DaDennis1220-Mar-09 12:38 
GeneralRe: ArrayList stored in Application Settings Pin
DaveyM6920-Mar-09 12:51
professionalDaveyM6920-Mar-09 12:51 
AnswerRe: ArrayList stored in Application Settings Pin
DaDennis1220-Mar-09 12:56
DaDennis1220-Mar-09 12:56 
GeneralRe: ArrayList stored in Application Settings Pin
DaveyM6920-Mar-09 13:10
professionalDaveyM6920-Mar-09 13:10 
GeneralRe: ArrayList stored in Application Settings [modified] Pin
DaveyM6920-Mar-09 14:49
professionalDaveyM6920-Mar-09 14:49 
GeneralRe: ArrayList stored in Application Settings Pin
DaveyM6920-Mar-09 15:53
professionalDaveyM6920-Mar-09 15:53 
GeneralRe: ArrayList stored in Application Settings Pin
DaveyM6921-Mar-09 9:35
professionalDaveyM6921-Mar-09 9:35 
GeneralRe: ArrayList stored in Application Settings Pin
DaDennis1222-Mar-09 3:47
DaDennis1222-Mar-09 3:47 
GeneralRe: ArrayList stored in Application Settings Pin
DaveyM6922-Mar-09 4:34
professionalDaveyM6922-Mar-09 4:34 
QuestionDézipe file with c# Pin
abbd20-Mar-09 11:09
abbd20-Mar-09 11:09 
AnswerRe: Dézipe file with c# Pin
Mbah Dhaim20-Mar-09 11:15
Mbah Dhaim20-Mar-09 11:15 
GeneralRe: Dézipe file with c# Pin
abbd21-Mar-09 0:08
abbd21-Mar-09 0:08 
AnswerRe: Dézipe file with c# Pin
Ravadre20-Mar-09 12:01
Ravadre20-Mar-09 12:01 
QuestionShow a console window for 10sec in C# console application Pin
abbd20-Mar-09 11:00
abbd20-Mar-09 11: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.