Click here to Skip to main content
16,005,467 members
Home / Discussions / C#
   

C#

 
Generalusefull tools in c# image processing Pin
Member 166679620-Jan-05 13:18
Member 166679620-Jan-05 13:18 
GeneralRe: usefull tools in c# image processing Pin
Dave Kreskowiak20-Jan-05 13:28
mveDave Kreskowiak20-Jan-05 13:28 
GeneralRe: usefull tools in c# image processing Pin
Christian Graus20-Jan-05 13:37
protectorChristian Graus20-Jan-05 13:37 
GeneralRe: usefull tools in c# image processing Pin
Dennis C. Dietrich20-Jan-05 13:49
Dennis C. Dietrich20-Jan-05 13:49 
GeneralDefault Application running path Pin
StephenMcAllister20-Jan-05 12:53
StephenMcAllister20-Jan-05 12:53 
GeneralRe: Default Application running path Pin
DougW4820-Jan-05 13:05
DougW4820-Jan-05 13:05 
GeneralRe: Default Application running path Pin
Dennis C. Dietrich20-Jan-05 13:14
Dennis C. Dietrich20-Jan-05 13:14 
GeneralRe: Default Application running path Pin
Dave Kreskowiak20-Jan-05 13:25
mveDave Kreskowiak20-Jan-05 13:25 
Follow Dennis' link to the Application.StartupPath(). The problem your having is that your assuming that the current directory will never change when you app is open. This is simply not the case. As you've found out, it can change at any time.

When you code file paths, NEVER use just a filename. ALWAYS prefix your filepaths with a complete path specification. You can use the Application.StartupPath() to return the directory path that your .EXE was launched from. Then use the Path class' Combine() method to build a full path specification to your .XML file.


RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

Generalarray of object Pin
NicklasRing20-Jan-05 12:10
NicklasRing20-Jan-05 12:10 
GeneralRe: array of object Pin
Christian Graus20-Jan-05 12:22
protectorChristian Graus20-Jan-05 12:22 
GeneralRe: array of object Pin
Dennis C. Dietrich20-Jan-05 13:28
Dennis C. Dietrich20-Jan-05 13:28 
GeneralRe: array of object Pin
Christian Graus20-Jan-05 13:30
protectorChristian Graus20-Jan-05 13:30 
GeneralRe: array of object Pin
Dennis C. Dietrich20-Jan-05 13:33
Dennis C. Dietrich20-Jan-05 13:33 
Generalwindows application vs console application mode Pin
Pilaf20-Jan-05 9:01
Pilaf20-Jan-05 9:01 
GeneralRe: windows application vs console application mode Pin
Dave Kreskowiak20-Jan-05 13:21
mveDave Kreskowiak20-Jan-05 13:21 
GeneralCheck for DVD-ROM Pin
jooky20-Jan-05 8:24
jooky20-Jan-05 8:24 
GeneralThreadPool ThreadSleep issue. Pin
Tristan Rhodes20-Jan-05 8:03
Tristan Rhodes20-Jan-05 8:03 
GeneralC# bittorrents Pin
kshet2620-Jan-05 7:14
kshet2620-Jan-05 7:14 
GeneralRe: C# bittorrents Pin
Heath Stewart20-Jan-05 7:20
protectorHeath Stewart20-Jan-05 7:20 
GeneralArrayList Pin
Newbie_Toy20-Jan-05 6:17
Newbie_Toy20-Jan-05 6:17 
GeneralRe: ArrayList Pin
Heath Stewart20-Jan-05 7:29
protectorHeath Stewart20-Jan-05 7:29 
GeneralRe: ArrayList Pin
Newbie_Toy20-Jan-05 19:25
Newbie_Toy20-Jan-05 19:25 
GeneralRe: ArrayList Pin
Heath Stewart21-Jan-05 5:53
protectorHeath Stewart21-Jan-05 5:53 
GeneralArray Parameter to Method In COM ActiveX Control Pin
tdciswalker20-Jan-05 5:55
tdciswalker20-Jan-05 5:55 
GeneralRe: Array Parameter to Method In COM ActiveX Control Pin
Heath Stewart20-Jan-05 7:18
protectorHeath Stewart20-Jan-05 7:18 

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.