Advertisement
Guest User

Stackoverflow

a guest
May 17th, 2016
258
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.14 KB | None | 0 0
  1. public partial class Form1 : Form
  2. {
  3. public Form1()
  4. {
  5. InitializeComponent();
  6. }
  7.  
  8. private void button1_Click(object sender, EventArgs e)
  9. {
  10.  
  11. }
  12.  
  13. public void Form1_Load(object sender, EventArgs e)
  14. {
  15. var blah = 1;
  16. List<int> aList = new List<int>();
  17. aList.Add(0);
  18. aList.Add(0);
  19. aList.Add(0);
  20. aList.Add(0);
  21. aList.Add(0);
  22. aList.Add(0);
  23. aList.Add(0);
  24. aList.Add(0);
  25. aList.Add(0);
  26. aList.Add(0);
  27. for (int i = 0; i < 10; i++)
  28. {
  29. aList[i] = (blah * 5);
  30.  
  31. Console.WriteLine("Array List = " + aList[i] + " : Loop number = " + i + " : var number = " + blah);
  32.  
  33. blah += 1;
  34. }
  35. }
  36.  
  37. Form1 form1 = new Form1();
  38. Form2 form2 = new Form2();
  39.  
  40.  
  41. private void button1_Click_1(object sender, EventArgs e)
  42. {
  43. form2.Show();
  44. form1.Hide();
  45. }
  46. }
  47. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement