fork download
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.Data;
  5. using System.Drawing;
  6. using System.Linq;
  7. using System.Text;
  8. using System.Windows.Forms;
  9. using System.Threading;
  10.  
  11. namespace WindowsFormsApplication1
  12. {
  13. public partial class Form1 : Form
  14. {
  15. public Form1()
  16. {
  17. InitializeComponent();
  18. this.Opacity = 0.0;
  19. this.Shown += new EventHandler(Form1_Shown);
  20. }
  21.  
  22. void Form1_Shown(object sender, EventArgs e)
  23. {
  24. Thread.Sleep(300);
  25. this.Opacity = 1.0;
  26. }
  27.  
  28. private void button1_Click(object sender, EventArgs e)
  29. {
  30. Form2 f2 = new Form2();
  31. f2.Show();
  32. }
  33. }
  34. public class Form2 : Form
  35. {
  36. public Form2()
  37. {
  38. this.Opacity = 0.0;
  39. this.Shown += new EventHandler(Form2_Shown);
  40.  
  41. }
  42. void Form2_Shown(object sender, EventArgs e)
  43. {
  44. Thread.Sleep(300);
  45. this.Opacity = 1.0;
  46. }
  47. }
  48. }
  49.  
Not running #stdin #stdout 0s 0KB
stdin
Standard input is empty
stdout
Standard output is empty