latina

latina

  • NA
  • 6
  • 0

Show a MDI-Form

Aug 1 2008 4:33 AM

Hi ,

Im learning c#. I have to develop a program for secretary so they can edit and save changes about the users in Active Directory. At the moment only one secretary and 100 users.

I want the loading of a MDI-Form after the user enter his password. In Visual Basic I did for many years ago something like that:  

               If LoginSucceeded = True Then
                  mdiMain.Show

In c# I wrote this but it doesnt work. : - ( At the moment I only want to know how I can load the MDI-Form from Login-Form. Cheers

private void btnOk_Click(object sender, EventArgs e)

{

try

{

if (true)

{

   frmMDImain.ActiveForm.Show();

}

else

{

}

catch (Exception ex) {

MessageBox.Show(ex.Message);

}

}

}


Answers (2)