private void Form1_Load(object sender, EventArgs e) { //ToDo:: Temp init SceneLink = @"D:\Sankar\01. Work\Adv Research\AR Framework\Scn01.Vid\compiling_01.avi"; SceneSize = new Size(800,600); //this.BackColor = Color.Magenta; //this.TransparencyKey = Color.Magenta; this.Size = SceneSize; this.StartPosition = FormStartPosition.CenterScreen; ScriptManager mgr = new ScriptManager(); axWindowsMediaPlayer1.Margin = new System.Windows.Forms.Padding(0); axWindowsMediaPlayer1.Padding = new System.Windows.Forms.Padding(0); axWindowsMediaPlayer1.URL = SceneLink; axWindowsMediaPlayer1.Ctlcontrols.play(); axWindowsMediaPlayer1.Ctlenabled = false; axWindowsMediaPlayer1.uiMode = "none"; axWindowsMediaPlayer1.Height = SceneSize.Height; axWindowsMediaPlayer1.Width = SceneSize.Width; axWindowsMediaPlayer1.stretchToFit = true; mgr.PlayScript(); }
private void InitAction() { mgr = new ScriptManager(); this.DoubleClick += new EventHandler(MainForm_DoubleClick); axWindowsMediaPlayer1.Margin = new System.Windows.Forms.Padding(0); axWindowsMediaPlayer1.Padding = new System.Windows.Forms.Padding(0); axWindowsMediaPlayer1.URL = Properties.Settings.Default.ContentPath + Properties.Settings.Default.MainVid; axWindowsMediaPlayer1.Ctlcontrols.play(); axWindowsMediaPlayer1.Ctlenabled = false; axWindowsMediaPlayer1.uiMode = "none"; axWindowsMediaPlayer1.Top = 30; axWindowsMediaPlayer1.Left = 50; axWindowsMediaPlayer1.Height = 300; axWindowsMediaPlayer1.Width = 550; axWindowsMediaPlayer1.stretchToFit = true; //mgr.PlayScript(); }