When I opened the Form1 program directly, to get to the correct directory
When I open form1 by Form6 form1 shows that it is the working directory of Form6
Form6 and Form1 is a separate application, respectively in different directory
how can after by opening Form1 Form6 Form1 own directory is obtained?
CodePudding user response:
1. Use form1 AppDomain. CurrentDomain. BaseDirectory2. Establish the form of programs shortcut form6 open the shortcut