public PlayerWindow(String path) { InitializeComponent(); vlc_player_ = new VlcPlayer(pluginPath); IntPtr render_wnd = this.panel1.Handle; vlc_player_.SetRenderWindow((int)render_wnd); is_playinig_ = false; this.trackBar2.Maximum = vlc_player_.GetVolume(); int vol = vlc_player_.GetVolume(); this.trackBar2.Value = vol / 2; vlc_player_.SetVolume(vol / 2); if (!string.IsNullOrEmpty(path)) { FormPlay(path); } this.AllowDrop = true; tbVideoTime.Text = "00:00:00/00:00:00"; }