Media Player in C#

The program is written in C#, you may also use VB.NET if you are familiar with it. The logic behind the program is same, just the coding syntax will vary.

Inside the Form_Load event

this.axWindowsMediaPlayer1.URL=Application.StartupPath + "\\Eraserheads - Ang Huling El Bimbo.mp4";
  • this - refer to the form itself
  • axWindowsMediaPlayer1 - name of the Media Player
  • Application.StartupPath - The default location of .exe file (inside in the debug and bin folder)
  • \\Eraserheads - Ang Huling El Bimbo.mp4" - Video file load to the media player