Click here to Skip to main content
15,906,106 members
Home / Discussions / C#
   

C#

 
GeneralRe: Correct way to try-catch in foreach loop? Pin
jparsons23-Jul-02 1:46
jparsons23-Jul-02 1:46 
GeneralRe: Correct way to try-catch in foreach loop? Pin
leppie23-Jul-02 7:17
leppie23-Jul-02 7:17 
GeneralNon-client area of controls Pin
Kastro22-Jul-02 18:32
Kastro22-Jul-02 18:32 
GeneralProperty Grid without an object Pin
Luis Alonso Ramos22-Jul-02 14:43
Luis Alonso Ramos22-Jul-02 14:43 
GeneralRe: Property Grid without an object Pin
James T. Johnson22-Jul-02 17:54
James T. Johnson22-Jul-02 17:54 
GeneralRe: Property Grid without an object Pin
Luis Alonso Ramos22-Jul-02 18:55
Luis Alonso Ramos22-Jul-02 18:55 
GeneralRe: Property Grid without an object Pin
James T. Johnson22-Jul-02 23:16
James T. Johnson22-Jul-02 23:16 
GeneralRe: Property Grid without an object Pin
leppie22-Jul-02 20:40
leppie22-Jul-02 20:40 
Luis Alonso Ramos wrote:
Short of writing my own (which I don't have time, this is an urgent project), does anybody have an idea??


Hi, just write a simple Seetings Class, thats what I do!

 public class Settings {
string name;
string password;

public string Name {get{return name;}set{name=value;}
public string Password {get{return password;}set{password=value;}
} 


Then just seriallize to object to a stream Smile | :) and deserialize to open. Note if u change your classes properties, you cannot deserialize an "old" version of the class to a "new" version of the class. Alternatively, you can reflect all the properties to an XML file and read it from there (not too sure how to handle non-primative class there, still looking).

If you dont have time to do this, then you really dont have time Smile | :)

Hope this helps

READ MSDN
GeneralRe: Property Grid without an object Pin
Luis Alonso Ramos24-Jul-02 5:53
Luis Alonso Ramos24-Jul-02 5:53 
GeneralRe: Property Grid without an object Pin
Nathan Blomquist24-Jul-02 6:32
Nathan Blomquist24-Jul-02 6:32 
GeneralRe: Property Grid without an object Pin
Luis Alonso Ramos24-Jul-02 7:32
Luis Alonso Ramos24-Jul-02 7:32 
GeneralRe: Property Grid without an object Pin
Luis Alonso Ramos24-Jul-02 9:49
Luis Alonso Ramos24-Jul-02 9:49 
GeneralRe: Property Grid without an object Pin
Nathan Blomquist24-Jul-02 10:14
Nathan Blomquist24-Jul-02 10:14 
GeneralRe: Property Grid without an object Pin
Luis Alonso Ramos24-Jul-02 10:48
Luis Alonso Ramos24-Jul-02 10:48 
QuestionWhat override when the control is added? Pin
Zombies with Coffee, LLC22-Jul-02 11:04
professionalZombies with Coffee, LLC22-Jul-02 11:04 
AnswerRe: What override when the control is added? Pin
James T. Johnson22-Jul-02 13:35
James T. Johnson22-Jul-02 13:35 
GeneralRe: What override when the control is added? Pin
Zombies with Coffee, LLC23-Jul-02 5:18
professionalZombies with Coffee, LLC23-Jul-02 5:18 
GeneralCoping Files over the internet Pin
Orion Buttigieg22-Jul-02 5:53
Orion Buttigieg22-Jul-02 5:53 
GeneralRe: Coping Files over the internet Pin
jparsons22-Jul-02 6:44
jparsons22-Jul-02 6:44 
GeneralRe: Coping Files over the internet Pin
Orion Buttigieg22-Jul-02 7:16
Orion Buttigieg22-Jul-02 7:16 
QuestionComboBox bug or feature? Pin
r.t.22-Jul-02 4:57
r.t.22-Jul-02 4:57 
AnswerRe: ComboBox bug or feature? Pin
Jasper John22-Jul-02 5:26
sussJasper John22-Jul-02 5:26 
AnswerRe: ComboBox bug or feature? Pin
Chris Rickard22-Jul-02 7:44
Chris Rickard22-Jul-02 7:44 
GeneralTyped DataSets and casing problems Pin
Andrew Connell22-Jul-02 4:33
Andrew Connell22-Jul-02 4:33 
GeneralRe: Typed DataSets and casing problems Pin
jparsons22-Jul-02 5:30
jparsons22-Jul-02 5:30 

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.