Click here to Skip to main content
15,897,718 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hello Friends
I am taking a media player in c# windows application and I want to take video file from a folder by using startup path I am trying but my file not play please tell solution
I am write

axWindowsMediaPlayer1.URL = Application.StartupPath + "\3_M_xvid.avi";
but not run
Posted

1 solution

var file=System.IO.Path.Combine(Application.StartupPath, "3_M_xvid.avi");

axWindowsMediaPlayer1.URL = file;
 
Share this answer
 
Comments
OriginalGriff 26-Jan-21 4:28am    
While I applaud your urge to help people, it's a good idea to stick to new questions, rather than 8 year old ones. After that amount of time, it's unlikely that the original poster is at all interested in the problem any more!
Answering old questions can be seen as rep-point hunting, which is a form of site abuse. The more trigger happy amongst us will start the process of banning you from the site if you aren't careful. Stick to new questions and you'll be fine.

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