Click here to Skip to main content
15,888,351 members
Home / Discussions / C#
   

C#

 
QuestionASP.NET and MATLAB deployment over web server Pin
Mridul Bagani21-Jun-13 3:44
Mridul Bagani21-Jun-13 3:44 
AnswerRe: ASP.NET and MATLAB deployment over web server Pin
Eddy Vluggen21-Jun-13 7:26
professionalEddy Vluggen21-Jun-13 7:26 
QuestionEditing Group Policies Using C# Pin
piyushhgupta20-Jun-13 7:06
piyushhgupta20-Jun-13 7:06 
AnswerRe: Editing Group Policies Using C# Pin
Pete O'Hanlon20-Jun-13 22:22
mvePete O'Hanlon20-Jun-13 22:22 
GeneralRe: Editing Group Policies Using C# Pin
piyushhgupta23-Jun-13 21:07
piyushhgupta23-Jun-13 21:07 
AnswerRe: Editing Group Policies Using C# Pin
Rajesh Anuhya21-Jun-13 1:03
professionalRajesh Anuhya21-Jun-13 1:03 
QuestionAfter the application is closed, get the last used Path in a textbox when application start again Pin
anubhavprabakar19-Jun-13 22:43
anubhavprabakar19-Jun-13 22:43 
AnswerRe: After the application is closed, get the last used Path in a textbox when application start again Pin
Keith Barrow19-Jun-13 23:44
professionalKeith Barrow19-Jun-13 23:44 
There are few ways to skin this cat, in my order of preference:

  1. Store in a .NET Application settings file. This is pretty simple, it is useful as a dictionary and everything is done within the .net framework. Here is an MSDN entry on this[^]
  2. Store it in the registry: Useful where you have simple key value pairs, the value is availble to multiple applications, though you do have the worry of cleaning the key if/when the app is un-installed. Personsally I try not to use the registry (I've banged up against permissions problems in the past. See Read, write and delete from registry with C#[^] for help on how to store to the registry
  3. Store it in User Data folders, this is good for more complex data (which you don't have, the above two options should be sufficient) as you have more control over how to structure the data. Basically you serialize the data into the file in this folder. There is a discussion of how to save to this folder here[^], if you do go down this route you should condsider saving a config file there rather than an ad-hoc text file, it will simplify things

“Education is not the piling on of learning, information, data, facts, skills, or abilities - that's training or instruction - but is rather making visible what is hidden as a seed”
“One of the greatest problems of our time is that many are schooled but few are educated”


Sir Thomas More (1478 – 1535)

GeneralRe: After the application is closed, get the last used Path in a textbox when application start again Pin
anubhavprabakar20-Jun-13 0:25
anubhavprabakar20-Jun-13 0:25 
GeneralRe: After the application is closed, get the last used Path in a textbox when application start again Pin
Keith Barrow20-Jun-13 2:47
professionalKeith Barrow20-Jun-13 2:47 
GeneralMessage Closed Pin
20-Jun-13 2:33
gadi.sridhar20-Jun-13 2:33 
GeneralRe: After the application is closed, get the last used Path in a textbox when application start again Pin
Eddy Vluggen20-Jun-13 2:50
professionalEddy Vluggen20-Jun-13 2:50 
GeneralRe: After the application is closed, get the last used Path in a textbox when application start again Pin
BobJanova21-Jun-13 1:04
BobJanova21-Jun-13 1:04 
GeneralRe: After the application is closed, get the last used Path in a textbox when application start again Pin
Keith Barrow21-Jun-13 2:27
professionalKeith Barrow21-Jun-13 2:27 
QuestionIncreaseHeaderHeight doesn't work outside CustomHeaderTest app Pin
QQ89795699619-Jun-13 19:04
QQ89795699619-Jun-13 19:04 
AnswerRe: IncreaseHeaderHeight doesn't work outside CustomHeaderTest app Pin
Richard MacCutchan19-Jun-13 20:33
mveRichard MacCutchan19-Jun-13 20:33 
GeneralRe: IncreaseHeaderHeight doesn't work outside CustomHeaderTest app Pin
QQ89795699619-Jun-13 22:35
QQ89795699619-Jun-13 22:35 
GeneralRe: IncreaseHeaderHeight doesn't work outside CustomHeaderTest app Pin
Richard MacCutchan19-Jun-13 22:41
mveRichard MacCutchan19-Jun-13 22:41 
QuestionReceipt Paper Roll Size Pin
Jassim Rahma19-Jun-13 9:26
Jassim Rahma19-Jun-13 9:26 
AnswerRe: Receipt Paper Roll Size Pin
Ron Beyer19-Jun-13 10:05
professionalRon Beyer19-Jun-13 10:05 
AnswerRe: Receipt Paper Roll Size Pin
dusty_dex19-Jun-13 10:13
dusty_dex19-Jun-13 10:13 
AnswerRe: Receipt Paper Roll Size Pin
Richard MacCutchan19-Jun-13 20:31
mveRichard MacCutchan19-Jun-13 20:31 
AnswerRe: Receipt Paper Roll Size Pin
Rajesh Anuhya21-Jun-13 1:04
professionalRajesh Anuhya21-Jun-13 1:04 
Questionsynchronizing xml and database Pin
LordZoster18-Jun-13 21:09
LordZoster18-Jun-13 21:09 
AnswerRe: synchronizing xml and database Pin
LordZoster19-Jun-13 2:25
LordZoster19-Jun-13 2:25 

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.