// static int login = 1; private void btnLogin_Click(object sender, EventArgs e) { txtName.Text = "Admin"; txtPassword.Text = "admin"; if (txtName.Text == "") { txtName.Focus(); } else if (txtPassword.Text == "") { txtPassword.Focus(); } else { txtName.Focus(); } Login(txtName.Text, txtPassword.Text); frmMainForm.UserId = userdalobj.ReturnId(txtName.Text, txtPassword.Text); frmMainForm.UserName = userdalobj.ReturnName(txtName.Text, txtPassword.Text); frmShowLocation fshowloc = new frmShowLocation(); fshowloc.MdiParent = this; fshowloc.Show(); }
private void locationWiseToolStripMenuItem_Click(object sender, EventArgs e) { frmShowLocation fshowloc = new frmShowLocation(); fshowloc.MdiParent = this; // this.Top = 0; // this.Left = 0; fshowloc.Show(); }
private void btnBack_Click(object sender, EventArgs e) { frmMainForm fmain = new frmMainForm(); this.Close(); frmShowLocation fshowloc = new frmShowLocation(); // this.MdiParent = fshowloc.MdiParent; // fshowloc.MdiParent = fmain.MdiParent; // fshowloc.Show(); }