public FrameForm(Screen s) { InitializeComponent(); /* Set Form Positioning in Secondary Window */ this.Left = s.Bounds.Left; this.Top = s.Bounds.Top; this.Size = s.Bounds.Size; this.WindowState = FormWindowState.Maximized; /* Create Right Click Menu */ ContextMenu cxtMnu = new ContextMenu(); this.mi_playCtrl = new MenuItem("Pause", mi_playCtrl_Clicked); cxtMnu.MenuItems.Add(this.mi_playCtrl); cxtMnu.MenuItems.Add("-"); cxtMnu.MenuItems.Add("Close Frame", delegate(object sndr, EventArgs e) { this.Close(); }); this.ContextMenu = cxtMnu; /* Load Image Settings */ this.t_imgTransition = new Timer(); this.t_imgTransition.Tick += t_imgTransition_Tick; LoadSettings(); /* Initiate Picture Boxes */ #if DEBUG System.Diagnostics.Debug.Print("Initialize picbx_visible"); #endif img_idx = 0; picbx_visible = new PictureBox(); picbx_visible.Parent = this; picbx_visible.Size = this.Size; picbx_visible.Location = new Point(0, 0); picbx_visible.Hide(); if (imageList.Length > 0) picbx_visible.Image = Image.FromFile(imageList[0]); #if DEBUG System.Diagnostics.Debug.Print("Initialize picbx_next"); #endif picbx_next = new PictureBox(); picbx_next.Parent = this; picbx_next.Size = this.Size; picbx_next.Location = new Point(0, 0); picbx_next.Hide(); if (imageList.Length > 1) picbx_next.Image = Image.FromFile(imageList[1]); #if DEBUG System.Diagnostics.Debug.Print(picbx_next.Parent.ToString()); #endif picbx_visible.FitContainer(); picbx_visible.Center(); picbx_visible.Show(); Properties.Settings.Default.SettingsSaving += delegate(object sndr, CancelEventArgs e){ LoadSettings(); }; /* Start Timer */ this.t_imgTransition.Start(); }