Forms and Controls. Part 3 dbg --- Naming conventions, Button, Event handlers, Label. The Form as a Platform. A Windows application form can act as a container for additional objects.
Part 3 dbg --- Naming conventions, Button, Event handlers, Label
There are several ways to add a control to a form:
As you add controls to your form via the Designer, code to create the objects and add the controls and their events to various collections is automatically added to the formname.Designer.cs file.
Strategies and Conventions
Create a project to display the daily specials for “your” diner. Make up a name for your diner and display it in a label at the top of the form. Add a label to display the appropriate special depending on the button that is pressed. The buttons should be:
Also include an Exit button.