1 / 10

Class 1 Remote Instruction More with Forms and Controls

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. Getting Started.

palila
Download Presentation

Class 1 Remote Instruction More with Forms and Controls

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Class 1 Remote InstructionMore 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.

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

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

  4. 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.

  5. 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

  6. To Run/Stop a Program • To run a program:Press the play buttonor press F5. • To stop a program:Press the stop buttonor press the X on program window.

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

  8. Saving Your Work Select file—save all from menus. 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). To close this project and start a new project, select file--close projectfrom the menus.

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

  10. 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.

More Related