Computer Science, asked by ethina23, 1 year ago

design a form in C++

Answers

Answered by SKYLER
0
To create a new Windows Forms projectOn the File menu, click New, and then click Project….In the Project Types pane, select CLR in the Visual C++ node, then select Windows Forms Application in the Templates pane.Type a name for the project, such as winformsapp. You can accept the default location, type in a location, or browse to a directory where you want to save the project.The Windows Forms Designer opens, showing Form1 of the project you created.To add controls to a formIf the Toolbox window is not visible, click Toolbox on the View menu.Place three controls from the Toolbox on the Form1 design surface:Drag a Label control to near the top-left corner of Form1.Drag a DateTimePicker control just below the Label control.Drag a Button control to the bottom of the form near the center.Your form should look something like this:To set properties of forms and controlsSelect the form by clicking on an empty area on its surface.If the Properties window is not visible, click Properties on the View menu (or press F4).You may want to close the Toolbox for more room.Set the form's Text property (shown in the form Title Bar) by clicking to the right of the Text property in the Properties Windowand typing:Date ChooserSelect the label by clicking on it and set its Text property to:Choose a date:Select the button by clicking on it and set its Text property to:OKThe form should look similar to this:
Similar questions