C#win控制元件

王ys發表於2024-06-21
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace _1
{   
    
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
            
        }
        int i = 1;
        private void button1_Click(object sender, EventArgs e)
        {
            B.Text = i+"";
            i++;
        }

        private void button2_Click(object sender, EventArgs e)
        {
            
        }

    }
}

  

相關文章