Form2.cs 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  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.Threading.Tasks;
  9. using System.Windows.Forms;
  10. namespace WindowsFormsApp1
  11. {
  12. public partial class Form2 : Form
  13. {
  14. public Form2()
  15. {
  16. InitializeComponent();
  17. }
  18. private void button2_Click(object sender, EventArgs e)
  19. {
  20. Form3 Main = new Form3();
  21. Main.Show();
  22. Hide();
  23. }
  24. private void button1_Click(object sender, EventArgs e)
  25. {
  26. Form4 Main = new Form4();
  27. Main.Show();
  28. Hide();
  29. }
  30. private void button3_Click(object sender, EventArgs e)
  31. {
  32. Form5 Main = new Form5();
  33. Main.Show();
  34. Hide();
  35. }
  36. private void button4_Click(object sender, EventArgs e)
  37. {
  38. Form6 Main = new Form6();
  39. Main.Show();
  40. Hide();
  41. }
  42. private void button5_Click(object sender, EventArgs e)
  43. {
  44. Form7 Main = new Form7();
  45. Main.Show();
  46. Hide();
  47. }
  48. private void button6_Click(object sender, EventArgs e)
  49. {
  50. Form8 Main = new Form8();
  51. Main.Show();
  52. Hide();
  53. }
  54. private void button7_Click(object sender, EventArgs e)
  55. {
  56. Form1 Main = new Form1();
  57. Main.Show();
  58. Hide();
  59. }
  60. }
  61. }