thiya Posted April 23, 2005 Posted April 23, 2005 hi all: In my application im using richtextbox control and need to display the word doc in the rich textbox control. How can i get the application folder path.I am trying to use following code RTxtEula.FileName = Application.excutablePath & "\EULA.rtf" but it has pointed the bin folder. Plz any one help me to overcome the issue. thanks in advance, Quote
HJB417 Posted April 23, 2005 Posted April 23, 2005 RTxtEula.FileName = System.IO.Path.Combine(System.Windows.Forms.Application.StartupPath, "EULA.rtf") ? Quote
Leaders snarfblam Posted April 23, 2005 Leaders Posted April 23, 2005 Are you looking for something like Environment.GetFolderPath()? The application will run in the bin folder unless you copy the EXE somewhere else. That is your application's folder. Quote [sIGPIC]e[/sIGPIC]
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.