private void buttonNext_Click(object sender, EventArgs e)
        {
            Form2 form2 = new Form2();

            string formName = ActiveControl.FindForm().Name.ToString();

            TimeHandler.StartTime();
            form2.Show();
        }
Exemple #2
0
 private void form_Move(object sender, MouseEventArgs e)
 {
     // Allow dragging from Form and Title Label
     if (sender.GetType().Name == "GUI")
     {
         if (md)
         {
             this.Location = new Point(
                 (this.Location.X - lastLocation.X) + e.X, (this.Location.Y - lastLocation.Y) + e.Y);
             this.Update();
         }
     }
     else
     {
         if (md)
         {
             Form thisForm = ActiveControl.FindForm();
             thisForm.Location = new Point(
                 (thisForm.Location.X - lastLocation.X) + e.X, (thisForm.Location.Y - lastLocation.Y) + e.Y);
             thisForm.Update();
         }
     }
 }