Click here to Skip to main content
15,892,643 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
AnswerRe: Import yahoo address book in .net application Pin
Dave Kreskowiak23-Dec-05 5:49
mveDave Kreskowiak23-Dec-05 5:49 
QuestionConfiguration combobox missing on the standard toolbar in whidbey beta Pin
hiraljv21-Dec-05 20:14
hiraljv21-Dec-05 20:14 
QuestionPath to default files called by program Pin
smurfy3421-Dec-05 11:14
smurfy3421-Dec-05 11:14 
AnswerRe: Path to default files called by program Pin
Dave Kreskowiak21-Dec-05 13:13
mveDave Kreskowiak21-Dec-05 13:13 
AnswerRe: Path to default files called by program Pin
HakunaMatada22-Dec-05 0:07
HakunaMatada22-Dec-05 0:07 
GeneralRe: Path to default files called by program Pin
Dave Kreskowiak22-Dec-05 5:52
mveDave Kreskowiak22-Dec-05 5:52 
GeneralRe: Path to default files called by program Pin
HakunaMatada22-Dec-05 17:12
HakunaMatada22-Dec-05 17:12 
GeneralRe: Path to default files called by program Pin
Dave Kreskowiak22-Dec-05 17:55
mveDave Kreskowiak22-Dec-05 17:55 
Wait a minute... He's not looking for the directory from where the app was started. He's looking to get the directory that the .EXE is in, so it knows where to pick up this config file.

Environment.CurrentDirectory will return the current directory can never be relied on to be the directory the .EXE is in. This is because there are many ways to launch an .EXE, each of which can have a different current directory:

If the .EXE is launched directly, by double-clicking it's icon, the current directory will be the folder that the .EXE is installed in.

If the .EXE is launched by a shortcut, the current directory will be the directory specified in the shortcut, if it's specified. If not, then the current directory can be anything!

If the .EXE is launched by a batch file, then the current directory will be the last directory listed in the command prompt, i.e. C:\WINDOWS.

Application.StartupPath will give you the directory that the .EXE is in, no matter what it is or where it's launched from.


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

GeneralRe: Path to default files called by program Pin
HakunaMatada22-Dec-05 18:17
HakunaMatada22-Dec-05 18:17 
AnswerRe: Path to default files called by program Pin
HakunaMatada22-Dec-05 0:11
HakunaMatada22-Dec-05 0:11 
Questionerror LNK2028: unresolved token Pin
Lythimer21-Dec-05 2:41
Lythimer21-Dec-05 2:41 
AnswerRe: error LNK2028: unresolved token Pin
hiraljv21-Dec-05 20:21
hiraljv21-Dec-05 20:21 
GeneralRe: error LNK2028: unresolved token Pin
Lythimer22-Dec-05 9:12
Lythimer22-Dec-05 9:12 
QuestionPictureBox in .NET Pin
HakunaMatada20-Dec-05 18:17
HakunaMatada20-Dec-05 18:17 
AnswerRe: PictureBox in .NET Pin
Dave Kreskowiak21-Dec-05 2:48
mveDave Kreskowiak21-Dec-05 2:48 
GeneralRe: PictureBox in .NET Pin
HakunaMatada22-Dec-05 0:23
HakunaMatada22-Dec-05 0:23 
GeneralRe: PictureBox in .NET Pin
Dave Kreskowiak22-Dec-05 1:39
mveDave Kreskowiak22-Dec-05 1:39 
GeneralRe: PictureBox in .NET Pin
HakunaMatada22-Dec-05 20:26
HakunaMatada22-Dec-05 20:26 
GeneralRe: PictureBox in .NET Pin
Dave Kreskowiak23-Dec-05 3:57
mveDave Kreskowiak23-Dec-05 3:57 
GeneralRe: PictureBox in .NET Pin
HakunaMatada23-Dec-05 17:27
HakunaMatada23-Dec-05 17:27 
GeneralRe: PictureBox in .NET Pin
Dave Kreskowiak26-Dec-05 6:15
mveDave Kreskowiak26-Dec-05 6:15 
GeneralRe: PictureBox in .NET Pin
HakunaMatada26-Dec-05 17:20
HakunaMatada26-Dec-05 17:20 
GeneralRe: PictureBox in .NET Pin
Colin Angus Mackay26-Dec-05 6:42
Colin Angus Mackay26-Dec-05 6:42 
GeneralRe: PictureBox in .NET Pin
HakunaMatada26-Dec-05 17:24
HakunaMatada26-Dec-05 17:24 
QuestionManaged RTP stack Pin
Ray Cassick20-Dec-05 16:49
Ray Cassick20-Dec-05 16:49 

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.