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.  
  10. namespace WindowsFormsApplication1
  11. {
  12. public partial class Form1 : Form
  13. {
  14. public Form1()
  15. {
  16. InitializeComponent();
  17. }
  18.  
  19. private void button1_Click(object sender, EventArgs e)
  20. {
  21. Form2 f2 = new Form2();
  22. f2.Show();
  23. }
  24. }
  25. public class Form2 : Form
  26. {
  27. public Form2()
  28. {
  29. this.Opacity = 0.0;
  30. this.Shown += new EventHandler(Form2_Shown);
  31. }
  32. Timer t = new Timer();
  33. void Form2_Shown(object sender, EventArgs e)
  34. {
  35. t.Tick += new EventHandler(t_Tick);
  36. t.Interval = 100;
  37. t.Enabled = true;
  38. }
  39.  
  40. void t_Tick(object sender, EventArgs e)
  41. {
  42. t.Enabled = false;
  43. this.Opacity = 1.0;
  44. }
  45. }
  46. }
  47.  
Not running #stdin #stdout 0s 0KB
stdin
Standard input is empty
stdout
Standard output is empty