I want to do a cryptography project for school, in which I'll have 3 options (encrypt+decrypt text file, image file, another options). I want to do this project using C# windows forms even though I don't really know it well, so what's the best way to make a menu for my project? use multiple panels or use multiple forms? I tried panels and it's not very convenient but how do I make a form for each option in the menu?
Also it would be very helpful is someone could share a good guide/tutorial on windows forms (especially on multiple forms and how to control them)
thanks
gibs rayPosted Oct 6, 2012, 3:22 AM
Scott LyslePosted Oct 5, 2012, 10:20 PM
To get there, create a new form for each set of controls you want to launch from the menu. For example, create Form2 and Form3. Form1 can be your main application. If you drop a menu control on form1 and create menu options "Open Form2" and "Open Form3", and then double click each of the menu options the IDE will create a click event handler for each and open the code window so that you can write the code to open your other forms. The code for that is pretty trivial.
Form2 f = new Form2();
f.Show();
or f.ShowDialog();
Show Dialog will open the form modally.