Access to the file in the same directory
Correction to my previous post.
I have created a windows application.
There are forms inside the windows form application project. There is a class library project too.
The .sln is in the following path:
C:\Work\Developments\SQLchecks\SQLchecks
The windows forms are inside the windows application project as below:
C:\Work\Developments\SQLchecks\SQLchecks\SQLchecks
There is a class library project called DataAccess which has classes and an xml file called Settings.xml :
C:\Work\Developments\SQLchecks\SQLchecks\DataAccess
Question:
from within a class inside the DataAccess project which is a class library project, how do I refer to the Settings.xml file which is also in the same directory?
Thanks
Re: Access to the file in the same directory
Why are you creating different threads for the same problem? Can't you just update the same thread? You have already created two threads for this and this is third.
http://www.vbforums.com/showthread.php?t=536364
http://www.vbforums.com/showthread.php?t=536373
Re: Access to the file in the same directory
When the project is compiled, it moves all relevant files to a directory under bin\
and builds the .exe there. Settings.xml may not be getting moved over or may be getting compiled into your executable as content. Click on the file and check it's settings. Be sure "Copy of newer" is enabled, and it should copy it along with everything else to the output directory. You can access it there.
Re: Access to the file in the same directory
Yes, Apologiese.
I will modify my other post.
Sorry