代码
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
dataGridView1.Rows.Clear();
this.toolStripProgressBar1.Value = 0;
this.toolStripStatusLabel1.Text = "0%";
IPAddress address;
if(IPAddress.TryParse(textBox1.Text,out address))
{
Properties.Settings.Default.DefaultIP = textBox1.Text;
Properties.Settings.Default.Save(