Click here to Skip to main content
15,923,273 members
Home / Discussions / C#
   

C#

 
AnswerRe: checking for file existence Pin
Martin#31-May-07 3:34
Martin#31-May-07 3:34 
AnswerRe: checking for file existence Pin
Luc Pattyn31-May-07 5:04
sitebuilderLuc Pattyn31-May-07 5:04 
Questionreferencing from C: or D: drive Pin
ploxy31-May-07 3:21
ploxy31-May-07 3:21 
AnswerRe: referencing from C: or D: drive Pin
kubben31-May-07 5:07
kubben31-May-07 5:07 
GeneralRe: referencing from C: or D: drive Pin
Not Active31-May-07 5:21
mentorNot Active31-May-07 5:21 
GeneralRe: referencing from C: or D: drive Pin
kubben31-May-07 5:31
kubben31-May-07 5:31 
GeneralRe: referencing from C: or D: drive Pin
snorkie31-May-07 8:28
professionalsnorkie31-May-07 8:28 
GeneralRe: referencing from C: or D: drive Pin
Dave Kreskowiak31-May-07 8:41
mveDave Kreskowiak31-May-07 8:41 
That's a really bad idea. CurrentDirectory is NOT guaranteed to stay that way. Try opening any of the File/Folder dialogs and watch what happens to the current directory during the life of the dialog AND after the dialog. The current directory changes while the user navigates to pick files/folders. The current directory will not return to the original directory when the dialog was shown until after the dialog is dismissed AND the dialog object is told to reset the current directory to what it was when it was shown.

Meanwhile, during the users navigation of the file system, the current directory always changes to match where the user is navigating. If you have a multithreaded app that mistakenly depends on current directory, you've got a huge problem!


A guide to posting questions on CodeProject[^]

Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic
     2006, 2007


GeneralRe: referencing from C: or D: drive Pin
snorkie31-May-07 9:01
professionalsnorkie31-May-07 9:01 
AnswerRe: referencing from C: or D: drive Pin
Not Active31-May-07 5:20
mentorNot Active31-May-07 5:20 
AnswerRe: referencing from C: or D: drive Pin
Dave Kreskowiak31-May-07 5:56
mveDave Kreskowiak31-May-07 5:56 
AnswerRe: referencing from C: or D: drive Pin
Luc Pattyn31-May-07 9:56
sitebuilderLuc Pattyn31-May-07 9:56 
QuestionDrawToolsRedux, but in OpenGl Pin
a_david12331-May-07 2:49
a_david12331-May-07 2:49 
QuestionUsing GetMessage in C# Pin
gapfulgence31-May-07 2:46
gapfulgence31-May-07 2:46 
AnswerRe: Using GetMessage in C# Pin
kubben31-May-07 3:00
kubben31-May-07 3:00 
GeneralRe: Using GetMessage in C# Pin
gapfulgence31-May-07 4:19
gapfulgence31-May-07 4:19 
GeneralRe: Using GetMessage in C# Pin
kubben31-May-07 4:22
kubben31-May-07 4:22 
GeneralRe: Using GetMessage in C# Pin
gapfulgence31-May-07 6:11
gapfulgence31-May-07 6:11 
GeneralRe: Using GetMessage in C# Pin
baranils4-Jan-11 9:00
baranils4-Jan-11 9:00 
GeneralRe: Using GetMessage in C# Pin
kubben4-Jan-11 13:12
kubben4-Jan-11 13:12 
GeneralRe: Using GetMessage in C# Pin
baranils4-Jan-11 19:41
baranils4-Jan-11 19:41 
GeneralRe: Using GetMessage in C# Pin
kubben5-Jan-11 1:56
kubben5-Jan-11 1:56 
GeneralRe: Using GetMessage in C# Pin
baranils5-Jan-11 2:23
baranils5-Jan-11 2:23 
GeneralRe: Using GetMessage in C# Pin
kubben5-Jan-11 2:42
kubben5-Jan-11 2:42 
GeneralRe: Using GetMessage in C# Pin
baranils5-Jan-11 3:44
baranils5-Jan-11 3:44 

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.