Пример #1
0
        private void movies__btn_Click(object sender, EventArgs e)
        {
            this.Hide();
            MoviesForm movies_form = new MoviesForm();

            movies_form.Show();
        }
Пример #2
0
        private void ShowMoviesBtn_Click(object sender, EventArgs e)
        {
            foreach (Form frm in this.MdiChildren)
            {
                frm.Close();
            }
            MoviesForm form = new MoviesForm {
                MdiParent = this,
                Dock      = DockStyle.Fill
            };

            form.Show();
            Slider.Top    = ShowMoviesBtn.Top;
            Slider.Height = ShowMoviesBtn.Height;
        }