public class ZTCD { public static string ZJZ = ""; public static string jg = ""; public static int CD = 0; public static string yzm = string.Empty; }
//改变类中参数的值,可在两个winform窗体间传递
Form2 frm1 = new Form2(); frm1.Show(); frm1.tsslName.Text = txtName.Text; frm1.tsslNo.Text = txtNo.Text;
//还可以直接访问
时间: 2024-10-13 00:27:56