public FormMain() { InitializeComponent(); MyLog.Add("========================================== Open application"); MyFile.SetAppInfo(); // filter form Filter button subFormFilterForm.filterForm_filterVideos += new EventHandler(subFormFilterForm_filterVideos); // list item clicked subFormListView.listView_selectedIndexChanged += new EventHandler(SubFormListView_selectedIndexChanged); // file list double clicked subFormFileList.fileList_DoubleClicked += new EventHandler(SubFormFileList_doubleClicked); // load videos done loadVideos = new LoadVideos(); loadVideos.loadVideos_Completed += new EventHandler(LoadVideos_Completed); // add browse view subFormGallery = new SubFormGallery(); this.Controls.Add(subFormGallery); // may not need all controls, but mimicing list view for now subFormGallery.AddAccessToSubForms(subFormFilterForm, subFormFileList, subFormVideoForm, subFormVideoImage, subFormProgressMain); subFormGallery.Hide(); // so user controls can talk to other user controls subFormListView.AddAccessToSubForms(subFormFilterForm, subFormFileList, subFormVideoForm, subFormVideoImage, subFormProgressMain); subFormFilterForm.AddAccessToSubForms(subFormListView, subFormGallery, subFormVideoForm, subFormProgressMain); subFormFileList.AddAccessToSubForms(subFormListView, subFormVideoForm, subFormVideoImage, subFormProgressMain); // mouse wheelz this.MouseWheel += new MouseEventHandler(FormMain_MouseWheel); }