C# windows窗体上的自动播放视频

C# windows窗体上的自动播放视频,c#,axwindowsmediaplayer,C#,Axwindowsmediaplayer,我是.net新手,无法自动播放视频。我会在这里显示不同的文本框,但我希望视频不带任何按钮播放 using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Wind

我是.net新手,无法自动播放视频。我会在这里显示不同的文本框,但我希望视频不带任何按钮播放

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using WMPLib;

namespace ThinkQDisplay
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void axWindowsMediaPlayer1_Enter(object sender, EventArgs e)
        {
             AxWindowsMediaPlayer1.URL = "C:\Users\Ramrod\Documents\Visual Studio 2012\Projects\ThinkQDisplay\ThinkQDisplay\sample.avi";
        }
    }
}
它不断告诉我们这是一个无法识别的转义序列。此外,我想有一个单独的表格(表格2)。在那里我可以选择在这里玩什么形式1。是否也可以将其循环

    private void axWindowsMediaPlayer1_Enter(object sender, EventArgs e)
    {
         axWindowsMediaPlayer1.URL = @"C:\Users\Ramrod\Documents\Visual Studio 2012\Projects\ThinkQDisplay\ThinkQDisplay\sampler.avi";
    }

    private void Form1_Load(object sender, EventArgs e)
    {
        axWindowsMediaPlayer1.settings.autoStart = true;
    }
}

}

想想字符串中的“转义序列”是什么。对于这个错误消息,是的,我包括了;但它仍然表示,尽管我使用WMPLib添加了名称文件,但名称文件在当前上下文中不存在;可能重复的