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

C#

 
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 
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 
It isn't really a temporary file, if you don't delete it when the app finished.

I understand your problem, I suggest you take a look at my first reply and use a settings file (it is the first option I gave) - it is ideal for storing single values for this, there is a link in reply. When the user opens the folder broweser it is either pre-populated with the last path you stored in the settings file or uses the default location if a value has not been stored there. When the user OKs (or whatever) the Dialog, you need to store the path from the Dialog into the settings file. That way you don't need to go through the hassle of writing the code to write/read from a raw text file.
“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)

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 
AnswerRe: synchronizing xml and database Pin
jschell19-Jun-13 9:05
jschell19-Jun-13 9:05 
GeneralRe: synchronizing xml and database Pin
LordZoster19-Jun-13 10:16
LordZoster19-Jun-13 10:16 

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.