private void Form1_Load(object sender, EventArgs e) { try { string pluginPath = Environment.CurrentDirectory + "\\plugins\\"; //插件目录 player = new VlcPlayerBase(pluginPath); player.SetRenderWindow((int)pnlVideo.Handle); } catch (Exception ex) { MessageBox.Show(ex.Message); } }