Notice that the MyFirstForm class derives from Form and then initializes its own properties in the constructor. This gives us a simpler usage model, as shown in the new Main function, which creates an instance of the MyFirstForm class. You also gain the potential for reuse should MyFirstForm be needed in other parts of your application. Still, our form is pretty boring. It doesn't even include a way to interact with it except for the system-provided adornments. We can add some interactivity by adding a button:
Thursday, October 15, 2020
Subscribe to:
Post Comments (Atom)
Application Settings As some applications get more sophisticated, users expect more from all their applications. For example, some applicat...
-
Before we start the drag-and-drop extravaganza that the Designer enables, let's take a look at a slightly abbreviated version of the co...
-
In the Designer, you can drop and arrange any controls on the user control that you like, setting their properties and handling events jus...
-
Setting the Dock Property As an example, the form in shows the Dock properties for a status bar, a tree view, and a list view, the lat...
No comments:
Post a Comment