Beispiel #1
0
        void TabPage7Click(object sender, EventArgs e)
        {
            SelectRace frm = new SelectRace();

            frm.TopLevel        = false;
            frm.Visible         = true;
            frm.FormBorderStyle = FormBorderStyle.None;
            frm.Dock            = DockStyle.Fill;
            tabControl1.TabPages[5].Controls.Add(frm);
        }
        void OpenRaceClick(object sender, System.EventArgs e)
        {
            if (startracewindow == null)

            {
                startracewindow              = new SelectRace();
                startracewindow.FormClosing += fmanageracewindowclosing;

                //	RaceWindow.Parent = this;
            }


            startracewindow.Show();

            startracewindow.Focus();
        }
        public void fmanageracewindowclosing(object sender, FormClosingEventArgs e)

        {
            startracewindow = null;
        }