Adding a button to the form is a matter of creating a new Button object, setting the properties that we like, and adding the Button object to the list of controls that the form manages. This code will produce a button on the form that does that nifty 3-D depress thing that buttons do when you press them, but nothing else interesting will happen. That's because we're still not handling the button's click event, where an event is a way for a control to notify its container that something has happened. For example, the following code handles the button's Click event:
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