private void goname_Click(object sender, EventArgs e)
 {
     ByName namepage = new ByName();
     namepage.Name.Text = NStart.Text;
     this.Close();
     namepage.Show();
 }
        private void goname_Click(object sender, EventArgs e)
        {
            bool error = false;

            if (NStart.Text is string && NStart.Text.Length>0)
            {
                CEnd.BackColor = Color.White;
            }
            else
            {
                error = true;
                NStart.BackColor = Color.Red;
            }

            if (error == false)
            {
                ByName namepage = new ByName();
                namepage.name.Text = NStart.Text;
                if (!namepage.IsDisposed)
                {
                    this.Dispose();
                    namepage.Show();
                }
            }
            else
            {
                error = false;
            }
        }