public static string uname;
public static strinf upwd;
if(登录成功)
{
uname = tb_User.Text.Trim();
upwd = tb_Password.Text.Trim();
this.Close();
new System.Threading.Thread(() =>
{
Application.Run(new Form2);
}).Start();
}
因为我在Form2还要使用Form1的全局变量 我想问下Form1都关闭了 为什么Form2还能读取到Form1的值