try { int width = panel1.Width; int height = panel1.Height; System.Uri u = new Uri("http://xyz.com/Testmovie.avi"); Video video; video = Video.FromUrl(u); video.Owner = panel1; video.Stop(); video.Play(); // resize the video to the size original size of the panel panel1.Size = new Size(width, height); }catch(Exception gh) { MessageBox.Show(gh.ToString()); }
video = Video.FromUrl(u);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)