Click here to Skip to main content
15,908,166 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to identify the Process, that is created using Code ? Pin
Jacobb Michael13-Aug-09 5:23
Jacobb Michael13-Aug-09 5:23 
QuestionC# Save the the last entered data on application exit and reload it on application start. Pin
maheesh12-Aug-09 16:49
maheesh12-Aug-09 16:49 
AnswerRe: C# Save the the last entered data on application exit and reload it on application start. Pin
N a v a n e e t h12-Aug-09 16:51
N a v a n e e t h12-Aug-09 16:51 
GeneralRe: C# Save the the last entered data on application exit and reload it on application start. Pin
maheesh12-Aug-09 18:50
maheesh12-Aug-09 18:50 
GeneralRe: C# Save the the last entered data on application exit and reload it on application start. Pin
Christian Graus12-Aug-09 19:00
protectorChristian Graus12-Aug-09 19:00 
GeneralRe: C# Save the the last entered data on application exit and reload it on application start. Pin
maheesh12-Aug-09 19:19
maheesh12-Aug-09 19:19 
AnswerRe: C# Save the the last entered data on application exit and reload it on application start. Pin
Mycroft Holmes12-Aug-09 18:08
professionalMycroft Holmes12-Aug-09 18:08 
AnswerRe: C# Save the the last entered data on application exit and reload it on application start. Pin
mustang8612-Aug-09 20:00
mustang8612-Aug-09 20:00 
Hi!

Are you looking for the "official" C# way of saving program settings?
I know that it's different under .NET and with C# than the stupid method that Microsoft suggested before with Visual Studio 6 (before .NET) - put *EVERYTHING* in the registry!

I'm using the method below to store my program settings in my C# programs.
Windows Forms User Settings in C#[^]

From the books that I read, the above is the suggested method.

There are good/bad points with that method. *I* like storing a ".dat" file in the program directory. But, as I understand, with ***** Vista, and maybe with Windows 7, a user may not always be able to store a file in the programs directory (even if it's on the hard drive and a single user system). So, that's why the users application data area is used.


I use the above method to store the COM port number, program settings, user preferences, and so on. It may not be the best or fastest way. But, it works. Smile | :) And, it conforms to the accepted and suggested C#/.NET methods for storing/retrieving program data. So, if/when someone else looks at my code, it's not something unique or different than what's commonly done.

Good Luck!
________
Joe
AnswerRe: C# Save the the last entered data on application exit and reload it on application start. Pin
wjp_auhtm12-Aug-09 21:07
wjp_auhtm12-Aug-09 21:07 
GeneralRe: C# Save the the last entered data on application exit and reload it on application start. Pin
maheesh12-Aug-09 22:16
maheesh12-Aug-09 22:16 
GeneralRe: C# Save the the last entered data on application exit and reload it on application start. Pin
wjp_auhtm13-Aug-09 0:22
wjp_auhtm13-Aug-09 0:22 
GeneralRe: C# Save the the last entered data on application exit and reload it on application start. Pin
maheesh13-Aug-09 1:32
maheesh13-Aug-09 1:32 
QuestionAccessing/reading .TTF Pin
dell22412-Aug-09 16:17
dell22412-Aug-09 16:17 
QuestionVisio file to pdf Pin
StefCarle12-Aug-09 15:19
StefCarle12-Aug-09 15:19 
AnswerRe: Visio file to pdf Pin
Christian Graus12-Aug-09 16:45
protectorChristian Graus12-Aug-09 16:45 
QuestionPopulate TreeView from a flat file Pin
ccsalway12-Aug-09 11:48
ccsalway12-Aug-09 11:48 
AnswerRe: Populate TreeView from a flat file Pin
PIEBALDconsult12-Aug-09 13:41
mvePIEBALDconsult12-Aug-09 13:41 
AnswerRe: Populate TreeView from a flat file Pin
Luc Pattyn12-Aug-09 14:07
sitebuilderLuc Pattyn12-Aug-09 14:07 
GeneralRe: Populate TreeView from a flat file Pin
ccsalway12-Aug-09 20:14
ccsalway12-Aug-09 20:14 
GeneralRe: Populate TreeView from a flat file Pin
Luc Pattyn13-Aug-09 2:12
sitebuilderLuc Pattyn13-Aug-09 2:12 
GeneralRe: Populate TreeView from a flat file Pin
ccsalway13-Aug-09 2:13
ccsalway13-Aug-09 2:13 
GeneralRe: Populate TreeView from a flat file Pin
Luc Pattyn13-Aug-09 3:08
sitebuilderLuc Pattyn13-Aug-09 3:08 
QuestionAdd shortcuts to a system tray application Pin
LordZoster12-Aug-09 9:53
LordZoster12-Aug-09 9:53 
AnswerRe: Add shortcuts to a system tray application Pin
Henry Minute12-Aug-09 10:23
Henry Minute12-Aug-09 10:23 
GeneralRe: Add shortcuts to a system tray application Pin
LordZoster12-Aug-09 10:34
LordZoster12-Aug-09 10:34 

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.