Presentation is loading. Please wait.

Presentation is loading. Please wait.

Class 1 Remote Instruction More with Forms and Controls EDU 556 Programming for Instruction Dr. Steve Broskoske This is an audio PowerCast. Make sure.

Similar presentations


Presentation on theme: "Class 1 Remote Instruction More with Forms and Controls EDU 556 Programming for Instruction Dr. Steve Broskoske This is an audio PowerCast. Make sure."— Presentation transcript:

1

2 Class 1 Remote Instruction More with Forms and Controls EDU 556 Programming for Instruction Dr. Steve Broskoske This is an audio PowerCast. Make sure your volume is turned up, and press F5 to begin. Click to advance as usual.

3 Getting Started Select “windows forms application” as project type on start-up. Name project (name of application) before hitting OK button.

4 See properties (or events) by category or ABC. Select controls from toolbox. Place controls on form. Double-click control to initiate coding. Click tabs to see form design or form coding.

5 Setting Properties Be careful what you click on! Click a control (or the form) to set its properties. Always set these 2 properties first: – Name: Refer to control’s name when coding. btnNameofButton lblNameofLabel txtNameofTextbox – Text: What is displayed in control. Then click a control and set its properties.

6 Coding for Buttons Display next form: – Form2.show – Me.hide 'You must keep the first form running. Navigate back to previous form: – Form1.show – Me.close ‘You can close any form except Form1. End the program through a button: – Me.close

7 To Run/Stop a Program To run a program: Press the play button or press F5. To stop a program: Press the stop button or press the X on program window.

8 Calendar control. Label control. Buttons grouped with a panel. Buttons grouped with a group box. MonthCalendar1.Visible = True OR MonthCalendar1.Visible = False lblDemo.Visible = True OR lblDemo.Visible = False Click tabs to toggle between design and coding.

9 Saving Your Work Make sure your project name is here. Browse and specify where to save your project (hard drive or stick). Check to create a directory (folder). Select file—save all from menus. To close this project and start a new project, select file--close project from the menus.

10 Anchoring Controls Anchor label: left and top. Anchor web browser: left, top, right, and bottom. Anchor text box: left, top, and right. Anchor button: top and right. Anchor controls to allow for resizing.

11 Remote Assignment Create a Web browser screen as shown in the last slide. Name all of the controls. Play with anchoring (left, top, right, bottom) properties of objects to see how they work. If you maximize form when it runs, the “go” button should be anchored to right side, and the URL box (textbox) should stretch across form.


Download ppt "Class 1 Remote Instruction More with Forms and Controls EDU 556 Programming for Instruction Dr. Steve Broskoske This is an audio PowerCast. Make sure."

Similar presentations


Ads by Google