NicoVB Posted October 2, 2003 Posted October 2, 2003 Hi, I have a few sounds I have to load from code... Where does I have to save these sounds ? In which directory??? Does I have to include them as CONTENT???? Which is the easiest one??? Thanks NIco Quote Visit http://www.nico.gotdns.com Now ONLINE!
*Experts* mutant Posted October 2, 2003 *Experts* Posted October 2, 2003 You can put them wherever you want. Good way would be to put them in the same folder as your application so you can easily get to them from wherever your application is by using Application.StartupPath which returns the folder in which the exe is. Quote
Mohsen Posted October 3, 2003 Posted October 3, 2003 Dear Nico, Open your application folders, which might be in MyDocuments->VB.netProjects, Open your project, you will find a folder called "bin" created after you run your project. so save them in that folder. Access them as "Application.StartupPath" at your code. Application.StartupPath takes you to the bin folder. Cheers. Mohsen for more questions email me on : mohsenfarran@yahoo.com Quote
NicoVB Posted October 3, 2003 Author Posted October 3, 2003 Hi thanks for the answers, but another question: WILL this be the same if I deploy my application. WIll he automatically find the file?? Quote Visit http://www.nico.gotdns.com Now ONLINE!
SourceCoders Posted October 3, 2003 Posted October 3, 2003 Yes it works! Application.StartupPath gives the path were are the application executed from. At the moment were the function was called this information is created and not at design time. Quote
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.