Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

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();
}
Comment

PREVIOUS NEXT
Code Example
Csharp :: read administrator account remote machine C# 
Csharp :: how crate cron netapp 
Csharp :: vbnet programatically convert type to db type 
Csharp :: razor: show editable list 
Csharp :: dinero en C# 
Csharp :: black lives matter update arsenal 
Html :: favicon meta 
Html :: html meta refresh 
Html :: email regex html pattern 
Html :: td align top 
Html :: sweetalert2 cdn 
Html :: flutter build web html renderer 
Html :: html input not editable 
Html :: how to run vscode as root 
Html :: bootstrap 5 carousel disable autoplay 
Html :: page dans un nouvelle onglet html 
Html :: python get html from url 
Html :: js import web3 cdn 
Html :: bootstrap footer bottom of page 
Html :: vue datatable date format 
Html :: twitter icon html5 
Html :: html skype link 
Html :: abrir pdf con html 
Html :: show pdf in html 
Html :: select in vee validate 
Html :: html indice 
Html :: include favicon html 
Html :: html class and id difference 
Html :: share to facebook html link 
Html :: doctype 
ADD CONTENT
Topic
Content
Source link
Name
6+4 =