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

C#

 
GeneralRe: Declaring inherited class objects Pin
Bahadir Cambel4-Jan-05 6:57
Bahadir Cambel4-Jan-05 6:57 
GeneralRe: Declaring inherited class objects Pin
Steven Campbell4-Jan-05 16:52
Steven Campbell4-Jan-05 16:52 
GeneralRe: Declaring inherited class objects Pin
Anonymous5-Jan-05 4:20
Anonymous5-Jan-05 4:20 
Generalmulit-client server programming question Pin
ppp0014-Jan-05 0:22
ppp0014-Jan-05 0:22 
GeneralRe: mulit-client server programming question Pin
perlmunger4-Jan-05 8:30
perlmunger4-Jan-05 8:30 
QuestionHow to get the Application path of a console app.? Pin
senfgurke3-Jan-05 19:35
senfgurke3-Jan-05 19:35 
AnswerRe: How to get the Application path of a console app.? Pin
senfgurke3-Jan-05 20:08
senfgurke3-Jan-05 20:08 
GeneralRe: How to get the Application path of a console app.? Pin
Charlie Williams4-Jan-05 5:51
Charlie Williams4-Jan-05 5:51 
From MSDN:

"The current directory is distinct from the original directory, which is the one from which the process was started."

You can change the current directory by setting the CurrentDirectory of the Environment class. This would obviously give you false results if you're trying to get the path to the executing or entry assmebly.

Use Assembly.Location to get the physical path to the assembly in question. You can use Assembly.GetEntryAssembly to get the entry assembly or Assmebly.GetExecutingAssembly to get the assembly from which the current code is executing.

Charlie

if(!curlies){ return; }
GeneralRe: How to get the Application path of a console app.? Pin
senfgurke4-Jan-05 19:35
senfgurke4-Jan-05 19:35 
Generalpattern comparision Pin
Member 12609413-Jan-05 18:53
Member 12609413-Jan-05 18:53 
GeneralRe: pattern comparision Pin
jan larsen4-Jan-05 2:38
jan larsen4-Jan-05 2:38 
General2 threads use the same database connection to do transaction... Pin
ting6683-Jan-05 16:51
ting6683-Jan-05 16:51 
QuestionHow to package a project Pin
Blue_Skye3-Jan-05 16:49
Blue_Skye3-Jan-05 16:49 
AnswerRe: How to package a project Pin
perlmunger4-Jan-05 8:17
perlmunger4-Jan-05 8:17 
GeneralTo perlmunger Pin
Blue_Skye4-Jan-05 15:23
Blue_Skye4-Jan-05 15:23 
GeneralRe: To perlmunger Pin
perlmunger5-Jan-05 6:30
perlmunger5-Jan-05 6:30 
GeneralTo perlmunger Pin
Blue_Skye5-Jan-05 19:39
Blue_Skye5-Jan-05 19:39 
GeneralTo perlmunger Pin
Blue_Skye5-Jan-05 19:41
Blue_Skye5-Jan-05 19:41 
QuestionHow to achieve Back Button Ctrl like IE in Windows Form ? Pin
stan283-Jan-05 16:27
stan283-Jan-05 16:27 
AnswerRe: How to achieve Back Button Ctrl like IE in Windows Form ? Pin
Judah Gabriel Himango4-Jan-05 4:36
sponsorJudah Gabriel Himango4-Jan-05 4:36 
QuestionChecked Combobox for .NET? Pin
Darren Weir3-Jan-05 14:09
Darren Weir3-Jan-05 14:09 
AnswerRe: Checked Combobox for .NET? Pin
perlmunger4-Jan-05 8:06
perlmunger4-Jan-05 8:06 
GeneralRe: Checked Combobox for .NET? Pin
Darren Weir4-Jan-05 10:58
Darren Weir4-Jan-05 10:58 
GeneralRe: Checked Combobox for .NET? Pin
perlmunger4-Jan-05 12:45
perlmunger4-Jan-05 12:45 
GeneralGradient ToolBar Pin
dmatz3-Jan-05 13:05
dmatz3-Jan-05 13:05 

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.