public void newname(string Admin) { adName.Text = Admin; AName.Text = Admin; } // this newname is getting the reference from another form here below public void FetchAdmin(string Admin) { label3.Text = Admin; adminsetter.newname(label3.Text); }
string Admin=""; private void admin_Click(object sender, EventArgs e) { string username = AdName.Text; string password = adPass.Text; td=edll.adlogin(username, password); Admin += username; ad.FetchAdmin(Admin); if (td.Rows.Count>0) { MessageBox.Show("Login Successfull"); this.Hide(); ad.Show(); } else { MessageBox.Show("Login Failed "); } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)