I have 3 menu items in Form1 and when I select any of them I want to open Form2. However, I need to show different label captions and make some contols visible or invisible depending on the menu item I select. I think I need to pass a flag either 0,1,2 depending on the menu selected and then show the form depending on the flag. I am currently using this in the menu click event of Form1 to invoke Form2
Form2 frm = new Form2();
frm.OnOkClickedEvent += new Form2.OnOkClicked(HandleEventSet);
frm.ShowDialog(this);
This currently handles the selections made in Form2. I am very new to C# so please be gentle.
Thanks
Form2 frm = new Form2();
frm.OnOkClickedEvent += new Form2.OnOkClicked(HandleEventSet);
frm.ShowDialog(this);
This currently handles the selections made in Form2. I am very new to C# so please be gentle.
Thanks