I have a very simple application and initially a menu screen will be required.
Although I do not know what the best way is:
- Use different forms? But then both can be independently shaped, which I do not want
- Use the custom control in the main form which disappears after the selection of "run".
- Code> Application. Run execute the menu, finish and then perform the application itself?
- Any other options?
Thank you in advance for your advice.
First of all; Set up a visual controller A central square that you can ask which view is displayed. This will save you some problems below the line.
There are several ways from this point of view. Personally, I should not have many free-floating forms (even if they were displayed at one time). If you use the form, then consider setting them as MDI children for the main form. ViewController can take care of maintenance, such as setting up a MDI child, to show, maximize, go to the top, remove at least buttons, etc.
Alternatively, you can use user controls that you put on the start and screen. / P>
How do I control your main concern, how to control the display on the screen, for whatever reason, if you hook up events like FormClose for ViewController then you can put logic there .
Comments
Post a Comment