private void pbEdit_Click(object sender, EventArgs e) { //修改指定连接 getVpnName(); ThreadStart starter = delegate { VPNTools.editConnection(currentVPN); }; Thread thread = new Thread(starter); thread.IsBackground = true; thread.Start(); }