You must Sign In to post a response.
  • Category: .NET

    How to disable button from using mdi parent

    I am creating login form (enter username (Text Box), password (Text Box) & rights(Using combo box) ,I am select a rights from user that time my forms button disable, after that I again goes to login enter rights form Admin that time button visible, how to create in c# windows application 2010,

    I am using MDI Parent form, without MDI parent working nice, but I am using MDI Parent forms not working (it means button visible both login), how to show my button control only admin login.
  • #765945
    From MDI parent we can disable MDI child button

    protectedvoid MDIChildNew_Click(object sender, System.EventArgs e)
    {
    Form2 newMDIChild = newForm2();
    // Set the Parent Form of the Child window.
    newMDIChild.MdiParent =this;
    newMDIChild.Button1.Enabled = false;
    // Display the new form.
    newMDIChild.Show();
    }

    hope it helps

    Thanks
    Koolprasd2003
    Editor, DotNetSpider MVM
    Microsoft MVP 2014 [ASP.NET/IIS]

  • #765947
    where i am write the above code, MDI Parent menu or my login form button - where i am write a above code


Sign In to post your comments