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

C#

 
GeneralRijndael encryption with .Net and decryption with native class Pin
hubbobubbo25-May-05 2:40
hubbobubbo25-May-05 2:40 
GeneralApplication for PDA barcode scanner Pin
verma-rahul25-May-05 2:20
verma-rahul25-May-05 2:20 
Generalconversion of db file in to csv file Pin
shashank veerkar25-May-05 0:53
shashank veerkar25-May-05 0:53 
GeneralRe: conversion of db file in to csv file Pin
rudy.net25-May-05 3:14
rudy.net25-May-05 3:14 
QuestionActiveX EXE equivalent? Pin
25-May-05 0:15
suss25-May-05 0:15 
AnswerRe: ActiveX EXE equivalent? Pin
John Fisher25-May-05 7:43
John Fisher25-May-05 7:43 
GeneralRe: ActiveX EXE equivalent? Pin
Member 199247025-May-05 23:05
Member 199247025-May-05 23:05 
Generalusing string[] to call dll for const char *arg[] Pin
hhmmdd24-May-05 23:31
hhmmdd24-May-05 23:31 
GeneralRe: using string[] to call dll for const char *arg[] Pin
hhmmdd24-May-05 23:43
hhmmdd24-May-05 23:43 
GeneralRe: using string[] to call dll for const char *arg[] Pin
eggie525-May-05 4:00
eggie525-May-05 4:00 
GeneralRe: using string[] to call dll for const char *arg[] Pin
hhmmdd25-May-05 4:55
hhmmdd25-May-05 4:55 
GeneralRe: using string[] to call dll for const char *arg[] Pin
eggie525-May-05 15:52
eggie525-May-05 15:52 
QuestionTimeSpanPicker for Windows Forms? Pin
Uwe Keim24-May-05 22:48
sitebuilderUwe Keim24-May-05 22:48 
AnswerRe: TimeSpanPicker for Windows Forms? Pin
mav.northwind25-May-05 2:48
mav.northwind25-May-05 2:48 
GeneralDetect if ocx is installed Pin
NoXuS24-May-05 22:38
NoXuS24-May-05 22:38 
GeneralRe: Detect if ocx is installed Pin
John Fisher25-May-05 7:38
John Fisher25-May-05 7:38 
GeneralRe: Detect if ocx is installed Pin
NoXuS25-May-05 21:35
NoXuS25-May-05 21:35 
Generalsocket connection in a .NET Applet (Windowsformcontrol hosted on browser) Pin
drkalucard24-May-05 22:16
drkalucard24-May-05 22:16 
GeneralRe: socket connection in a .NET Applet (Windowsformcontrol hosted on browser) Pin
Judah Gabriel Himango25-May-05 4:15
sponsorJudah Gabriel Himango25-May-05 4:15 
Generalsave configuration Pin
dogdogdog24-May-05 21:20
dogdogdog24-May-05 21:20 
GeneralRe: save configuration Pin
Colin Angus Mackay24-May-05 22:26
Colin Angus Mackay24-May-05 22:26 
GeneralRe: save configuration Pin
pubududilena24-May-05 22:37
pubududilena24-May-05 22:37 
GeneralRe: save configuration Pin
J4amieC24-May-05 23:40
J4amieC24-May-05 23:40 
You have to use XML to do this

Why do you HAVE to use Xml? You COULD use Xml, you COULD use a serialised object, you COULD use a database but you certainly don't HAVE to use Xml.

Personally I have used an object serialized to the filesystem for this. It is very simple - create a class to represent all the properties of the gui you wish to store, remember to mark it as [Serializable].

When the app is unloaded fill a new instance of your "settings" object with the values from the gui and use a serializer (Xml or Binary or any type you wish) to serialize to the filesystem.

When the app is loaded do it in reverse, deserialize the file back to an object and set the properties on the GUI.
GeneralRe: save configuration Pin
pubududilena25-May-05 1:11
pubududilena25-May-05 1:11 
GeneralRe: save configuration Pin
DavidNohejl25-May-05 1:35
DavidNohejl25-May-05 1:35 

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.