title: Is there any way to replay a video in Windows Media Control?
body: <p>How I can replay a video in Windows Media control? I try to do it by this way? but it doesn't work </p>
  
  <pre><code>    public Form1()
      {
          InitializeComponent();
      }
  
      private void Form1_Load(object sender, System.EventArgs e)
      {
          //mediaPlayer.currentPlaylist = mediaPlayer.mediaCollection.getByName("Dastan");
          //mediaPlayer.URL = @"C:\Documents and Settings\Администратор\Мои документы\Моя музыка\Мои списки воспроизведения\Dastan.wpl";
          //mediaPlayer.uiMode = "none";
          PlayFile(@"C:\Documents and Settings\Администратор\Мои документы\Моя музыка\Мои списки воспроизведения\Dastan.wpl");
      }
  
      private void mediaPlayer_PlayStateChange(object sender, AxWMPLib._WMPOCXEvents_PlayStateChangeEvent e)
      {
          if ((WMPLib.WMPPlayState)e.newState == WMPPlayState.wmppsPlaying)
          {
              mediaPlayer.fullScreen = true;
              mediaPlayer.Ctlenabled = false;
          }
          else if ((WMPLib.WMPPlayState)e.newState == WMPPlayState.wmppsMediaEnded)
          {
              Form1_Load(null, null);
          }
      }
      private void PlayFile(String url)
      {
          mediaPlayer.URL = url;
          mediaPlayer.Ctlcontrols.play();
      }
  </code></pre>
  
  <p>Any ideas?</p>