CookieMonster24 Posted August 25, 2003 Posted August 25, 2003 is there a way to display the location of the file, i.e. c:/file.txt, when a button is pressed. Quote
CookieMonster24 Posted August 25, 2003 Author Posted August 25, 2003 i'm sorry. i meant the location of the current form. so button pressed will display the form where the button is located on. Quote
Administrators PlausiblyDamp Posted August 25, 2003 Administrators Posted August 25, 2003 The name of the executable? Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
CookieMonster24 Posted August 25, 2003 Author Posted August 25, 2003 no, the location of the form currently in use. Quote
*Experts* Volte Posted August 25, 2003 *Experts* Posted August 25, 2003 When compiled, there are no "form files" or anything. It's all part of the executable. Quote
CookieMonster24 Posted August 25, 2003 Author Posted August 25, 2003 Is there a way to retrieve the location of the executable? Quote
*Experts* DiverDan Posted August 25, 2003 *Experts* Posted August 25, 2003 Give this a try: MessageBox.Show(Application.StartupPath.ToString) That will return the location of your program's executable. Quote Member, in good standing, of the elite fraternity of mentally challenged programmers. Dolphins Software
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.