class 1 remote instruction more with forms and controls

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

Upload: palila

Post on 14-Feb-2016

29 views

Category:

Documents


0 download

DESCRIPTION

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. - PowerPoint PPT Presentation

TRANSCRIPT

Slide 1

Class 1 Remote InstructionMore with Forms and ControlsEDU 556 Programming for InstructionDr. Steve BroskoskeThis is an audio PowerCast. Make sure your volume is turned up, and press F5 to begin. Click to advance as usual.

Getting Started

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

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.

Setting PropertiesBe careful what you click on!Click a control (or the form) to set its properties.Always set these 2 properties first:Name: Refer to controls name when coding.btnNameofButtonlblNameofLabeltxtNameofTextboxText: What is displayed in control.Then click a control and set its properties.

Coding for ButtonsDisplay next form:Form2.showMe.hide 'You must keep the first form running.Navigate back to previous form:Form1.showMe.close You can close any form except Form1.End the program through a button:Me.close

To Run/Stop a ProgramTo run a program:Press the play buttonor press F5.

To stop a program:Press the stop buttonor press the X on program window.

Calendar control.Label control.Buttons grouped with a panel.Buttons grouped with a group box.MonthCalendar1.Visible = TrueORMonthCalendar1.Visible = FalselblDemo.Visible = TrueORlblDemo.Visible = FalseClick tabs to toggle between design and coding.

Saving Your WorkMake 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 filesave all from menus.To close this project and start a new project, select file--close projectfrom the menus.

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.

Remote AssignmentCreate 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.