hi
i am creating a login page.Inthe form load itself i need to hide the MenuStrip in MDI Parent to HIDE, When the users gives the correct passwd and pushes the Loginbutton , My MDIParent1 forms menustrip should be visible .
c my code . but it doesnt works. Any body pls clear my doubt.
I had created formobj mdifrm and made it visible false on load. this also not works.
thanks in adv
kssk
i am creating a login page.Inthe form load itself i need to hide the MenuStrip in MDI Parent to HIDE, When the users gives the correct passwd and pushes the Loginbutton , My MDIParent1 forms menustrip should be visible .
c my code . but it doesnt works. Any body pls clear my doubt.
Code:
private void LoginForm_Load(object sender, EventArgs e)
{
MDIParent1 mdifrm = new MDIParent1();
mdifrm.menuStrip.Visible = false;
Code:
private void btnLogin_Click_1(object sender, EventArgs e)
{
if (strPasswd == dsUsers.Tables[0].Rows[0].ItemArray[0].ToString())
{
[B] this.mdifrm.menuStrip.Visible = true;[/B]
this.Hide();
}
else
{
MessageBox.Show("Incorrect Password","Error",MessageBoxButtons.OK,MessageBoxIcon.Error);
}
}
kssk
Comment