Form1_Lab1.cs 982 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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. using static System.Windows.Forms.VisualStyles.VisualStyleElement;
  11. namespace WindowsFormsApp1
  12. {
  13. public partial class Form1 : Form
  14. {
  15. public Form1()
  16. {
  17. InitializeComponent();
  18. }
  19. private void Form1_Load(object sender, EventArgs e)
  20. {
  21. }
  22. private void button1_Click(object sender, EventArgs e)
  23. {
  24. textBox1.Text = "*****";
  25. }
  26. private void textBox1_TextChanged(object sender, EventArgs e)
  27. {
  28. }
  29. private void button2_Click(object sender, EventArgs e)
  30. {
  31. textBox1.Text = "+++++";
  32. }
  33. private void button3_Click(object sender, EventArgs e)
  34. {
  35. textBox1.Text = "00000";
  36. }
  37. }
  38. }