Click here to Skip to main content
15,921,660 members
Home / Discussions / C#
   

C#

 
GeneralRe: OpenFileDialog and SaveFileDialog Pin
cocoonwls18-Apr-08 10:12
cocoonwls18-Apr-08 10:12 
GeneralRe: OpenFileDialog and SaveFileDialog Pin
Dave Kreskowiak18-Apr-08 10:19
mveDave Kreskowiak18-Apr-08 10:19 
This is problably because you're not using fully qualified paths in your code or your using CurrentDirectory in it. You should ALWAYS build fully qualified paths to files in your code to avoid this very problem.

Also, using CurrentDirectory to build a path name is not a good idea because all of the File dialog's change what the current directory is and, therefore, can inadventantly change your file paths if they are not built properly.


A guide to posting questions on CodeProject[^]



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




AnswerRe: OpenFileDialog and SaveFileDialog Pin
Spacix One18-Apr-08 10:40
Spacix One18-Apr-08 10:40 
GeneralRe: OpenFileDialog and SaveFileDialog Pin
Matthew Butler18-Apr-08 11:07
Matthew Butler18-Apr-08 11:07 
GeneralRe: OpenFileDialog and SaveFileDialog Pin
Dave Kreskowiak18-Apr-08 15:26
mveDave Kreskowiak18-Apr-08 15:26 
GeneralRe: OpenFileDialog and SaveFileDialog Pin
cocoonwls18-Apr-08 15:43
cocoonwls18-Apr-08 15:43 
GeneralRe: OpenFileDialog and SaveFileDialog Pin
cocoonwls18-Apr-08 15:31
cocoonwls18-Apr-08 15:31 
GeneralRe: OpenFileDialog and SaveFileDialog Pin
Dave Kreskowiak18-Apr-08 15:34
mveDave Kreskowiak18-Apr-08 15:34 
GeneralRe: OpenFileDialog and SaveFileDialog Pin
cocoonwls18-Apr-08 15:45
cocoonwls18-Apr-08 15:45 
GeneralRe: OpenFileDialog and SaveFileDialog Pin
darkelv18-Apr-08 15:54
darkelv18-Apr-08 15:54 
GeneralRe: OpenFileDialog and SaveFileDialog [modified] Pin
Spacix One19-Apr-08 3:59
Spacix One19-Apr-08 3:59 
GeneralRetrieving the COM class factory for component with CLSID {00024500-0000-0000-C000-000000000046} failed due to the following error: 80070005 Pin
random418-Apr-08 8:46
random418-Apr-08 8:46 
QuestionBiztalk Developers/Architects? Pin
sksassociates18-Apr-08 8:37
sksassociates18-Apr-08 8:37 
QuestionWhat happoned to System.Uri(string, bool)?? [modified] Pin
Spacix One18-Apr-08 8:36
Spacix One18-Apr-08 8:36 
AnswerRe: What happoned to System.Uri(string, bool)?? Pin
Spacix One18-Apr-08 9:40
Spacix One18-Apr-08 9:40 
QuestionC# SQL Exception Error Pin
hobbsieoz18-Apr-08 8:32
hobbsieoz18-Apr-08 8:32 
AnswerRe: C# SQL Exception Error Pin
Jimmanuel18-Apr-08 9:10
Jimmanuel18-Apr-08 9:10 
GeneralRe: C# SQL Exception Error Pin
hobbsieoz18-Apr-08 20:48
hobbsieoz18-Apr-08 20:48 
GeneralRe: C# SQL Exception Error Pin
Jimmanuel19-Apr-08 2:30
Jimmanuel19-Apr-08 2:30 
QuestionStart a function in application A triggered by application B Pin
pxp18-Apr-08 7:15
pxp18-Apr-08 7:15 
GeneralRe: Start a function in application A triggered by application B Pin
Not Active18-Apr-08 7:31
mentorNot Active18-Apr-08 7:31 
GeneralRe: Start a function in application A triggered by application B Pin
led mike18-Apr-08 11:34
led mike18-Apr-08 11:34 
AnswerRe: Start a function in application A triggered by application B Pin
Judah Gabriel Himango18-Apr-08 8:06
sponsorJudah Gabriel Himango18-Apr-08 8:06 
GeneralRe: Start a function in application A triggered by application B Pin
Spacix One18-Apr-08 8:52
Spacix One18-Apr-08 8:52 
QuestionHow to center the Button through code in the form? Pin
pdoy070818-Apr-08 5:42
pdoy070818-Apr-08 5:42 

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.