案例

 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 _12
11 {
12     
13     public partial class Form1 : Form
14     {
15         int i=0;
16         public Form1()
17         {
18             InitializeComponent();
19         }
20 
21         private void button1_Click(object sender, EventArgs e)
22         {
23             i++;
24             B.Text = i.ToString();
25         }
26 
27     }
28 }

 

posted @ 2024-06-21 20:34  -刘-j-x-  阅读(11)  评论(0)    收藏  举报