|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Resource Directory VB.NET 2005I need to access a text document in the folder where my project is stored,
does anyone know how I can tell were the folder is from within a form. Like me.myDirectory or something like it ? Just Me,
I would create a registry property from that, others will use a config.file Cor Show quoteHide quote "Just Me" <news.microsoft.com> schreef in bericht news:%23DwudgCLHHA.960@TK2MSFTNGP04.phx.gbl... > > I need to access a text document in the folder where my project is stored, > does anyone know how I can tell were the folder is from within a form. > > Like me.myDirectory or something like it ? > > > I just used "../../" in the end. Thanks
Show quoteHide quote "Cor Ligthert [MVP]" <notmyfirstn***@planet.nl> wrote in message news:ufuo9ADLHHA.420@TK2MSFTNGP06.phx.gbl... > Just Me, > > I would create a registry property from that, others will use a > config.file > > Cor > > "Just Me" <news.microsoft.com> schreef in bericht > news:%23DwudgCLHHA.960@TK2MSFTNGP04.phx.gbl... >> >> I need to access a text document in the folder where my project is >> stored, does anyone know how I can tell were the folder is from within a >> form. >> >> Like me.myDirectory or something like it ? >> >> >> > > Hi
If i understnd what you want to find the application path you can use Dim fullPath As String = System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase then where ever the application is installed you will always be ok Roger Show quoteHide quote "Just Me" <news.microsoft.com> wrote in message news:%23DwudgCLHHA.960@TK2MSFTNGP04.phx.gbl... > > I need to access a text document in the folder where my project is stored, > does anyone know how I can tell were the folder is from within a form. > > Like me.myDirectory or something like it ? > > > JustMe,
You can also take a look at Application.StartupPath Bruce Show quoteHide quote "Roger Vale" <roger.v***@btinternet.com> wrote in message news:%23tb%23qoLLHHA.4244@TK2MSFTNGP04.phx.gbl... > Hi > > If i understnd what you want to find the application path you can use > > Dim fullPath As String = > System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase > then where ever the application is installed you will always be ok > > Roger > > "Just Me" <news.microsoft.com> wrote in message > news:%23DwudgCLHHA.960@TK2MSFTNGP04.phx.gbl... >> >> I need to access a text document in the folder where my project is >> stored, does anyone know how I can tell were the folder is from within a >> form. >> >> Like me.myDirectory or something like it ? >> >> >> >
ExecuteNonQuery - problem
How to modify label.text in a dynamically generated label in VB.net Typing Markup Tags Ending in /> Forms ok in design mode, cropped in run mode, only on my monitor complie Errors Dumb question Open a file wiht "(" in the filename? question about returning value of a function RE: VB.NET Service Timer Issue Parsing HTML Tables |
|||||||||||||||||||||||