2
Reply

Show a MDI-Form

latina

latina

Aug 1 2008 4:33 AM
5.1k

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)
Next Recommended Forum