Answers for "embed video to exe file with c#"

C#
0

embed video to exe file with c#

private void Form_Load(object sender, EventArgs e)
{
    var file=System.IO.Path.Combine(Application.StartupPath, "YourFileName.wmv");
    if (!System.IO.File.Exists(file))
        System.IO.File.WriteAllBytes(file, Properties.Resources.YourFileName);

    this.axWindowsMediaPlayer1.URL = file;
    this.axWindowsMediaPlayer1.Ctlcontrols.play();
}
Posted by: Guest on April-15-2020

C# Answers by Framework

Browse Popular Code Answers by Language