【求助】怎么写清空按钮的代码,新人第一次接触,急用。
如图:![](https://imgsa.baidu.com/forum/w%3D580/sign=0948e757cc1349547e1ee86c664f92dd/b3bd4b09c93d70cf6c50f5dbffdcd100b8a12bc5.jpg)
点 清空按钮 就把 前面8个勾√全部清空。。
还有 每次关闭这界面后 有打勾的也全部不见了。。就是打勾的数据没保留。。要怎样写代码 才能保留打勾
第一次接触,不懂写这代码 但是又急需用这界面,代码如下,谁能帮我 写下上面2个问题的代码啊 先谢谢了
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace WindowsFormsApplication3
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void textBox1_TextChanged(object sender, EventArgs e)
{
}
private void label2_Click(object sender, EventArgs e)
{
}
}
}
如图:
![](https://imgsa.baidu.com/forum/w%3D580/sign=0948e757cc1349547e1ee86c664f92dd/b3bd4b09c93d70cf6c50f5dbffdcd100b8a12bc5.jpg)
点 清空按钮 就把 前面8个勾√全部清空。。
还有 每次关闭这界面后 有打勾的也全部不见了。。就是打勾的数据没保留。。要怎样写代码 才能保留打勾
第一次接触,不懂写这代码 但是又急需用这界面,代码如下,谁能帮我 写下上面2个问题的代码啊 先谢谢了
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace WindowsFormsApplication3
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void textBox1_TextChanged(object sender, EventArgs e)
{
}
private void label2_Click(object sender, EventArgs e)
{
}
}
}