Dhimesh Parmar

Dhimesh Parmar

  • 1.7k
  • 108
  • 4.9k

How to load video into winforms from folder resources?

May 15 2018 4:46 AM
Sir i have a use this code like
  1. private void axWindowsMediaPlayer1_Enter(object sender, EventArgs e)  
  2. {  
  3. axWindowsMediaPlayer1.URL = @"L:\about.mp4";  
  4. }  
But my query is if click in 1 button then
  1. private void button1_Click(object sender, EventArgs e)  
  2. {  
  3. axWindowsMediaPlayer1.URL = @"E:/Song/Video/1.mp4";  
  4. axWindowsMediaPlayer1.Ctlcontrols.play();  
  5. }  
and if click in 2 button then another video is play
  1. private void button2_Click(object sender, EventArgs e)  
  2. {  
  3. axWindowsMediaPlayer1.URL = @"E:/Song/Video/2.mp4";  
  4. axWindowsMediaPlayer1.Ctlcontrols.play();  
  5. }  
but it not work i need help to solve this problem.

Answers (1)