I have a MDI menuControl frame that runs the enclosed code to control the opening and closing of forms. My problem is that once the menu selection is clicked on. the correct form loads, but the only code behind that runs is the form constructor and then it returns to the parent MDI form. It doesn't run the form Load() or anything else. I need it to effectively "run" the selected form until the user selects another menu item or exits the app. How can I do this? Thanks!
public void getForm(string node)
// string node = e.Node.ToString();
case "Time Entries":
frmTimeEntries objTimeEntries = new frmTimeEntries();
objTimeEntries.MdiParent = this;
private void timeEntriesToolStripMenuItem_Click(object sender, EventArgs e)
itemname = "Time Entries";
//This is the only code that gets executed before it returns back to the code above.