Linked Questions
10 questions linked to/from Get path to execution directory of Windows Forms application
0
votes
2
answers
3k
views
How can I get the executable file folder without the .exe name? [duplicate]
How can I make a string variable containing path to my win-app executable folder? I know that there's the simple command Application.ExecutablePath which returns all the path including the .exe name, ...
683
votes
11
answers
850k
views
Best way to get application folder path
I see that there are some ways to get the application folder path:
Application.StartupPath
System.IO.Path.GetDirectoryName(
System.Reflection.Assembly.GetExecutingAssembly().Location)
AppDomain....
25
votes
3
answers
13k
views
MS Test: Getting executing testlocation?
How do I find the equivalent of a path to the executing assembly when running tests under MS Test in VS 2010? I need to know where the test is running from, so that I can set a relative path to a data ...
2
votes
2
answers
12k
views
Change PictureBox image to images from application folder
I want PictureBox to load images from application folder. In the code below it loads picture from exact place. I want it to load images from application's folder so that if I copy it to other ...
-1
votes
2
answers
9k
views
VB.NET Saving file without save dialog prompt
I need to know how I can save a file, without using save file dialog prompt.
Currently my code is:
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ...
0
votes
5
answers
258
views
Finding a xml config file
I am trying to check whether an xml config file exists.
The file has the name MyApp.exe.config
I am using
public static bool FileExistsCheck(string filename, string filepath = "")
{
if (...
1
vote
1
answer
275
views
Where can I find the rootfolder for my VB.net project
I am making a project that will be put on a disc to use. This means that all of the files that I call upon have to be on that disc. How and where do I put my files to ensure that they will stay with ...
1
vote
1
answer
166
views
How to add address to my project
I made a complete C# WinForm project. When I was working I gave my flash files a whole address and called them like:
flashForm.MOVIE = @"D:\poem.swf";
But when I wanted to build my project as I ...
-5
votes
2
answers
216
views
How to use the function to get location of executable path? [duplicate]
I created a Form Application and I tried to get the executable path, and I find this :
System.Reflection.Assembly.GetExecutingAssembly().Location;
System.IO.Path.GetDirectoryName;
but when I puted ...
0
votes
1
answer
89
views
Picture box Image Directory Does not Run Another Computer
i crated a Picturebox in windows form.This code below is working properly
PictureBox.ImageLocation=@"C:\Users\MyPc\Desktop\Project\Image.jpg
but When i run my code in another pc the image doesn'...