Click here to Skip to main content
15,890,438 members
Home / Discussions / C#
   

C#

 
AnswerRe: DirectoryNotFoundException when directory does exist Pin
mav.northwind19-Apr-06 2:00
mav.northwind19-Apr-06 2:00 
Hi!
When you're using relative paths, you always have to be sure what's the current directory of the application.
You should NEVER assume anything regarding on what the current directory is, even showing an OpenFileDialog can change the current directory!

If you need a directory relative to your exe, you should use Application.StartupPath and build the path from there.

Regards,
mav

--
Black holes are the places where god divided by 0...
AnswerRe: DirectoryNotFoundException when directory does exist Pin
LongRange.Shooter19-Apr-06 4:02
LongRange.Shooter19-Apr-06 4:02 
AnswerRe: DirectoryNotFoundException when directory does exist Pin
theDexter19-Apr-06 8:50
theDexter19-Apr-06 8:50 
GeneralRe: DirectoryNotFoundException when directory does exist Pin
sergestusxx19-Apr-06 9:29
sergestusxx19-Apr-06 9:29 
QuestionRegarding WEB TV Pin
veerasekar Muthiah19-Apr-06 0:27
veerasekar Muthiah19-Apr-06 0:27 
AnswerRe: Regarding WEB TV Pin
LongRange.Shooter19-Apr-06 4:13
LongRange.Shooter19-Apr-06 4:13 
QuestionWindows Form Datagrid ? Pin
Gammaza19-Apr-06 0:24
Gammaza19-Apr-06 0:24 
QuestionSystem.Nullable(of Short) - How do I pass Null ... Pin
MaWeRic19-Apr-06 0:06
MaWeRic19-Apr-06 0:06 
AnswerRe: System.Nullable(of Short) - How do I pass Null ... Pin
Jon Hulatt19-Apr-06 0:35
Jon Hulatt19-Apr-06 0:35 
Questionproblem with visio shape object. Can't acces 'Class' class name, fields etc. Pin
crazymubashir19-Apr-06 0:04
crazymubashir19-Apr-06 0:04 
Questionstopping a thread Pin
naglbitur18-Apr-06 23:44
naglbitur18-Apr-06 23:44 
AnswerRe: stopping a thread Pin
Gammaza19-Apr-06 0:12
Gammaza19-Apr-06 0:12 
AnswerRe: stopping a thread Pin
LongRange.Shooter19-Apr-06 4:10
LongRange.Shooter19-Apr-06 4:10 
QuestionDynamic Value from an Object Pin
723718-Apr-06 23:39
723718-Apr-06 23:39 
AnswerRe: Dynamic Value from an Object Pin
J4amieC18-Apr-06 23:50
J4amieC18-Apr-06 23:50 
GeneralRe: Dynamic Value from an Object Pin
723719-Apr-06 0:05
723719-Apr-06 0:05 
GeneralRe: Dynamic Value from an Object Pin
J4amieC19-Apr-06 0:36
J4amieC19-Apr-06 0:36 
GeneralRe: Dynamic Value from an Object Pin
723719-Apr-06 16:03
723719-Apr-06 16:03 
Question[Message Deleted] Pin
HariKreddy18-Apr-06 23:33
HariKreddy18-Apr-06 23:33 
AnswerRe: browser compatibility Pin
alexey N19-Apr-06 0:00
alexey N19-Apr-06 0:00 
AnswerRe: browser compatibility Pin
CWIZO19-Apr-06 1:54
CWIZO19-Apr-06 1:54 
QuestionNUnit with VSTS Pin
deeps2618-Apr-06 22:48
deeps2618-Apr-06 22:48 
Questionsimple client/server Pin
Bekham18-Apr-06 22:17
Bekham18-Apr-06 22:17 
AnswerRe: simple client/server Pin
Mike Dimmick19-Apr-06 1:12
Mike Dimmick19-Apr-06 1:12 
QuestionCreate updates of my Setup project… Pin
anderslundsgard18-Apr-06 22:09
anderslundsgard18-Apr-06 22:09 

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.