Hello fellas, I have a slight problem. I have created an application where I am using linklabels to refer to a website, this works with no problem at all, however the problem that I do have is I cant work out the command to refer to a file or document.
The code to refer to a file on my PC is simple enough and works fine:
and the code for the websites is also ok
Now once when the application is published, the code still works, however this is because it is on my PC and so are the files/documents. The intention is to burn the program to a disk and have it install to a different location on a different PC so naturally I do not have any control where the application is installed
Naturally when the application is burnt and I take it to a different PC, the application will not refer to the files because it is no longer referring to my PC and the location of the files, I have used the code:
System.Diagnostics.Process.Start(Application.StartupPath + "\\docs\NOTICAS.doc")
this code still does not work, because the documents/files seem not to build with the program and returns and error of "the network path was not found"
Can someone please assist by explaining how I can get my application to burn to a CD, with the files/documents and what codes to use. I think this is something like opening a file or document in same folder as application.
I hope I have explained it enough, I am so frustrated.
Damn it I think I put this in the wrong place...I am using Visual Basic 2010 express
sorry if I did