Click here to Skip to main content
16,006,440 members
Home / Discussions / C#
   

C#

 
AnswerRe: Cast methods Pin
Marc Clifton25-Jan-07 12:26
mvaMarc Clifton25-Jan-07 12:26 
GeneralRe: Cast methods Pin
Aaron VanWieren25-Jan-07 12:31
Aaron VanWieren25-Jan-07 12:31 
GeneralRe: Cast methods Pin
Abisodun25-Jan-07 13:48
Abisodun25-Jan-07 13:48 
AnswerRe: Cast methods Pin
Christian Graus25-Jan-07 15:48
protectorChristian Graus25-Jan-07 15:48 
Questionrecord stream from webcam Pin
sini8725-Jan-07 9:30
sini8725-Jan-07 9:30 
AnswerRe: record stream from webcam Pin
Ed.Poore25-Jan-07 12:01
Ed.Poore25-Jan-07 12:01 
QuestionHow to restore the default base path after using an open file dialog Pin
Dan Neely25-Jan-07 8:52
Dan Neely25-Jan-07 8:52 
AnswerRe: How to restore the default base path after using an open file dialog Pin
Dave Kreskowiak25-Jan-07 9:19
mveDave Kreskowiak25-Jan-07 9:19 
Well, you could use the GetCurrentDirectory[^] method to get the current directory just before you open the dialog, then call SetCurrentDirectory[^] afterward to reset it.

But, if your code is written properly, you should never have to worry about this. This means your code shoud be written to use fully qualified path names in all cases, and not rely, at all, on whatever the current directory is.



Dave Kreskowiak
Microsoft MVP - Visual Basic


GeneralRe: How to restore the default base path after using an open file dialog Pin
Dan Neely25-Jan-07 9:48
Dan Neely25-Jan-07 9:48 
GeneralRe: How to restore the default base path after using an open file dialog Pin
Dave Kreskowiak25-Jan-07 10:26
mveDave Kreskowiak25-Jan-07 10:26 
GeneralRe: How to restore the default base path after using an open file dialog Pin
Martin#25-Jan-07 19:40
Martin#25-Jan-07 19:40 
GeneralRe: How to restore the default base path after using an open file dialog Pin
Dave Kreskowiak26-Jan-07 2:29
mveDave Kreskowiak26-Jan-07 2:29 
GeneralRe: How to restore the default base path after using an open file dialog Pin
Martin#26-Jan-07 3:07
Martin#26-Jan-07 3:07 
GeneralRe: How to restore the default base path after using an open file dialog Pin
Dave Kreskowiak26-Jan-07 14:07
mveDave Kreskowiak26-Jan-07 14:07 
GeneralRe: How to restore the default base path after using an open file dialog Pin
Martin#28-Jan-07 22:59
Martin#28-Jan-07 22:59 
AnswerRe: How to restore the default base path after using an open file dialog Pin
Martin#25-Jan-07 9:29
Martin#25-Jan-07 9:29 
GeneralRe: How to restore the default base path after using an open file dialog Pin
Dave Kreskowiak25-Jan-07 10:27
mveDave Kreskowiak25-Jan-07 10:27 
GeneralRe: How to restore the default base path after using an open file dialog Pin
Martin#25-Jan-07 19:36
Martin#25-Jan-07 19:36 
GeneralRe: How to restore the default base path after using an open file dialog Pin
Dave Kreskowiak26-Jan-07 2:23
mveDave Kreskowiak26-Jan-07 2:23 
GeneralRe: How to restore the default base path after using an open file dialog Pin
Martin#26-Jan-07 3:15
Martin#26-Jan-07 3:15 
AnswerRe: How to restore the default base path after using an open file dialog Pin
Marc Clifton25-Jan-07 12:21
mvaMarc Clifton25-Jan-07 12:21 
Questiongetting the enter key to act as a button click Pin
Rocky#25-Jan-07 8:30
Rocky#25-Jan-07 8:30 
AnswerRe: getting the enter key to act as a button click Pin
Pete O'Hanlon25-Jan-07 8:42
mvePete O'Hanlon25-Jan-07 8:42 
AnswerRe: getting the enter key to act as a button click Pin
Martin#25-Jan-07 9:02
Martin#25-Jan-07 9:02 
GeneralRe: getting the enter key to act as a button click Pin
bobsugar22225-Jan-07 23:50
bobsugar22225-Jan-07 23:50 

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.