squirrel Posted June 1, 2003 Posted June 1, 2003 I work as a trainer and my delegates have asked how to write a (VB) .NET application that will open a series of MP3s in the default player and play them. In VB6 I probably would have used the ShellExecute function to perform this but I can't seem to get the ShellExecute to work in .NET -- not even to open a Word or Notepad doc. What am I doing wrong?:confused: Quote
*Experts* mutant Posted June 1, 2003 *Experts* Posted June 1, 2003 Use this: System.Diagnostics.Process.Start("filename") This will open your mp3 in default player. Quote
squirrel Posted June 1, 2003 Author Posted June 1, 2003 (edited) Magic -- thanks. I can't believe I didn't try that! Some trainer I am!!!:rolleyes: :rolleyes: What about if I wanted to roll my own app to play a few MP3s in .NET. Or am I just asking for trouble? This is now me being curious as a developer. I have no intentions of teaching it, I'm just not sure where to start... Edited June 1, 2003 by squirrel Quote
Camaro Z28 Posted June 1, 2003 Posted June 1, 2003 Goto my website and the .net examples section. I have some examples that will play mp3's. MY website Jason Quote Visual Basic Code Source FREE Visual Basic Source Code
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.