namespace InformationExample
{
public partial class Form4 : Form
{
public string useryhm { get; set; }
public string usercode { get; set; }
public Form4()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
usercode = code1.Text;
useryhm = yhm2.Text;
MessageBox.Show(“注册成功!”);
Form4.ActiveForm.Close();
this.DialogResult = DialogResult.OK;
}
}
}
代码哪里不对么?点击注册后还需要再点一遍才可以结束?