NetBlog主题

C#,Winform关闭登录窗口打开主窗口的方法
WinForm技巧

C#,Winform关闭登录窗口打开主窗口的方法

2288 0

Program.cs中代码: Form1 fl = new Form1();fl.ShowDialog();if (fl.DialogResult == DialogResult.OK){Application.Run(new Form4());}else{return;}在登录窗体(Form1)中代码:private void button1_Click(object sender, EventArgs e) {if (textBox1.Text == "aaa&q…