saving item to same location as the program
-
i have already set up a listbox to be saved as a txt file, but now i wish to be able to have it saved to whereever the compiled program is, for example just say the program is called listboxes.exe and is in C:\testfolder then the txtfile containing the listbox data will be saved to its directory, c:\testfolder
-
i have already set up a listbox to be saved as a txt file, but now i wish to be able to have it saved to whereever the compiled program is, for example just say the program is called listboxes.exe and is in C:\testfolder then the txtfile containing the listbox data will be saved to its directory, c:\testfolder
You properly could use application.StartupPath, it returns a string containing the path to where you executed your program We can all do great things.