I am trying to create my first Windows Forms application. I created a Main form and added a Main Menu to it. I added a second Windows Form called Questionaires. I created code for the click event of one of my main menu items on the main form that looks like:
private void miQuestionaires_Click(object sender, System.EventArgs e)
{
Form frmQuestionaires = new Questionaires();
frmQuestionaires.Show();
}
The problem is that when I click on the "Questionaires" menu item, 2 instances of the Questionaires form are displayed.
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only