Click here to Skip to main content
15,888,113 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
Basically I cant work out how too in Visual Studio using C#, Windows Application make a button when clicked open "file" and make it play in "VLC media player" for example. If anyone can point me in the right direction I will be very greatfull.
Posted

1 solution

Create a new C# process object (for this see here[^]).
Then use the command line parameters given here[^] to open the file.

You will probably need the command line vlc [file://]filename.
 
Share this answer
 
v3
Comments
Nish Nishant 26-Oct-10 11:54am    
Voted 5, proposed as answer.
WurmInfinity 26-Oct-10 12:02pm    
Ok so i'm a small fish in a huge pond, but i'll give it a go thanks :)
Abhinav S 26-Oct-10 12:04pm    
You are welcome.
WurmInfinity 26-Oct-10 12:36pm    
Got it to work. Thanks so much :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900