Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private void startBtn_Click(object sender, EventArgs e)
- {
- axWindowsMediaPlayer1.URL=(videoForms.Properties.Resources.Airtel.wmv).ToString();
- axWindowsMediaPlayer1.Ctlcontrols.play();
- }
- 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();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement