Exemple #1
0
        void TabPage2Click(object sender, EventArgs e)
        {
            runners rnn = new runners();

            rnn.TopLevel        = false;
            rnn.Visible         = true;
            rnn.FormBorderStyle = FormBorderStyle.None;
            rnn.Dock            = DockStyle.Fill;
            tabControl1.TabPages[1].Controls.Add(rnn);
        }
        void Button1Click(object sender, System.EventArgs e)
        {
            if (runnerswindow == null)

            {
                runnerswindow              = new runners();
                runnerswindow.FormClosing += runnerswindowclosing;
                //	RaceWindow.Parent = this;
            }
            runnerswindow.Show();
            runnerswindow.Focus();
        }
        public void runnerswindowclosing(object sender, FormClosingEventArgs e)

        {
            runnerswindow = null;
        }