/// <summary> /// Transition to the form with the inquiry. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void Button3Click(object sender, EventArgs e) { Form5 f5 = new Form5(); this.Hide(); f5.Show(); }
/// <summary> /// Transition to the form with the inquiry. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void Button3Click(object sender, EventArgs e) { Form5 f5 = new Form5(); f5.Opacity = 0; f5.Show(); for (int i = 0; i <= 100; i++) { f5.Opacity = i / 100.0; System.Threading.Thread.Sleep(1);//чем меньше число, тем быстрее появится } Hide(); }