Hints on Chapter 5.

Slides:



Advertisements
Similar presentations
How to import and edit video clips in Windows Movie Maker
Advertisements

Computer Basics Hit List of Items to Talk About ● What and when to use left, right, middle, double and triple click? What and when to use left, right,
 Use the Left and Right arrow keys or the Page Up and Page Down keys to move between the pages. You can also click on the pages to move forward.  To.
FIRST COURSE Word Tutorial 2 Editing and Formatting a Document.
Exit Microsoft Outlook Skills Using Categories for Sorting, Filtering and Creating Group Oklahoma Department of Corrections Training Administration.
XP New Perspectives on Microsoft Office Access 2003, Second Edition- Tutorial 2 1 Microsoft Office Access 2003 Tutorial 2 – Creating And Maintaining A.
Creating And Maintaining A Database. 2 Learn the guidelines for designing databases When designing a database, first try to think of all the fields of.
Basic Editing Lesson 2- Part 2. Navigating and Searching Through a Document Find command options, the mouse, scroll bars, and various keystroke and keyboard.
PYP002 Intro.to Computer Science Microsoft Word1 Lab 07 Creating Documents with Efficiency and Consistency.
COMPREHENSIVE ICT Document Preparation System Mr.S.Sajiharan Computer Unit Faculty of Arts and Culture South Eastern University of Srilanka.
FIRST COURSE Word Tutorial 2 Editing and Formatting a Document.
Visual Basic Chapter 1 Mr. Wangler.
XP M.S. Word Editing and Formatting a Document. XP New Perspectives on Microsoft Office 2007: Windows XP Edition2 Objectives Check spelling and grammar.
Power Point Story Telling Using Power Point to learn about using PowerPoint.
Adding User Interactivity – Lesson 51 Adding User Interactivity Lesson 5.
Chapter 12: How Long Can This Go On?
Fall 2005 Using FrontPage to Enhance Blackboard - Darek Sady1 Using FrontPage to Enhance Blackboard 1.Introduction 2.Starting FrontPage 3.Creating Documents.
Daretolearn.org Creating and Applying Labels Archiving.
 Application – another name for a program.  Interface – is what appears on the screen when the application is running.  Program Code – is instructions.
Microsoft ® Office PowerPoint ® 2003 Training Create your own template [Your company name] presents:
Basic Editing Lesson 2.
1 Advanced Computer Programming Lab Calculator Project.
LANDESK SOFTWARE CONFIDENTIAL Tips and Tricks with Filters Jenny Lardh.
PROGRAMMING IN PYTHON LETS LEARN SOME CODE TOGETHER!
Open a new Flash File Action Script 2.0. Create a button like you did last lesson and name it Click to Play.
If you don’t have Google Earth downloaded already, you can go to to get it.
Getting Started With Alice: The Basics. Step 1: Background Open up Alice, and choose a background for your Alice world. Your world is something you can.
Game Maker Tutorials Introduction Clickball IntroductionClickball Where is it? Shooting Where is it?Shooting.
How to create a website from scratch.  You should have an internet access.  Visit  You need to create a new account OR.
Publisher CREATING A NEWSLETTER. Finished Product.
SageFox PowerPoint Slide
SageFox PowerPoint Slide
The Essentials of Alice (Bunny)
Visual Basic.NET Windows Programming
Getting Started With Alice: The Basics
Winter 2009 Tutorial #6 Arrays Part 2, Structures, Debugger
Microsoft Office Word 2003 Lesson 4
Teaching Characters to Walk: Learning Methods, Part 1
Eclipse Navigation & Usage.
Dr. Martin Luther King, Jr.
Mail Merge And Macros in MS WORD
~ How to create a basic website Part II ~
$ % $96.81 SageFox PowerPoint Slide Lorem Ipsum Lorem Ipsum
Starter Write a program that asks the user if it is raining today.
Chapter 2 Visual Basic Interface
UPDATING YOUR DREAMSHEET
Break Time 15 Minutes Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
Variables and Arithmetic Operations
TITLE GOES HERE Step #2 Step #4 Step #1 Step #3 Step #5 Your Subtitle
File Handling Programming Guides.
Introduction to TouchDevelop
Using the Multiple Choice Template
Microsoft Word Text Basics.
Exercise 8 – Software skills
Visual Basic Programming Chapter Four Notes Working with Variables, Constants, Data Types, and Expressions GROUPBOX CONTROL The _____________________________________.
Benchmark Series Microsoft Word 2016 Level 2
Items, Group Boxes, Check Boxes & Radio Buttons
Tonga Institute of Higher Education
Introduction to TouchDevelop
Go to =>
Slide Title.
Microsoft Office Access 2003
How to Submit Google Docs to the Homework Drop Box
TITLE GOES HERE Step #2 Step #4 Step #1 Step #3 Step #5 Your Subtitle
Introduction to PowerPoint
Getting Started With Alice: The Basics
MULTIPLE CHOICE A B C D.
An Introduction to Microsoft Word
Lab 07 Creating Documents with Efficiency and Consistency
Presentation transcript:

Hints on Chapter 5

Exercise 1 Read pp 236-240 2 times. It contains all needed info. The code is fairly the same as listing 5-4 What do those numbers mean? …read it. That should be all you need to know. By the way: e. is the event, in this case, of clicking on the link. The computer will help you by creating that subroutine when you click the linklabel. The links become link 0 and link 1, which is wat IndexOf(e.Link) determines.

Exercise 2 Be careful of endless loops Save regularly If your program freezes, your choices in order: VB.net stop button Ctrl-break Ctrl-alt-delete, end task for your project

Exercise 2 step by step Read pages 230 - 232 Make your form with Rich Text Box Button Change the property to make the rich text box say the funny phrase. Insert the code from listing 5-3 that is most appropriate Modify it to make it italic rather than bold Test your program…one instance should be italic. Once that works…continue…

Exercise 2 step by step Why are you still using fntBold? Give yourself a pat on the back if you already changed it to fntItalic, a meaningful name. fntItalic only needs to be Dimensioned once, even though we will use it for several instances of the font being used. Now that your project works for one instance we can prepare for multiple occurrences….

Exercise 2 continued According to page 230, the Find() method will return a value, so instead of simply making the method call, RichTextBox1.Find(“your desired text”) you will need to get the return value of that method. So let’s dim a variable intPosition that tells us where the desired text was found. Then assign the method’s return value to intPosition (simply assign what is on the right of the equal sign to what is on the left, as we have done often). Add Debug.WriteLine(intPosition) so we can spy on the value of intPosition Run your program. Look at the output window at the bottom of your screen. It will tell you the value of intPosition

The special Find options Now, change our Find method using the code from page 232: The string is the same as before Start is replaced by intPosition Options….let’s just use RichTextBoxFinds.None as we have no special options SAVE YOUR PROGRAM AGAIN BEFORE CREATING YOUR DO LOOP

Continuing… Now, if you already are trying to fit Do loops in there, you may be eating too much of the elephant at once. Now let’s “do our do”… Surround your 2 lines of code that occur more than once in your do loop. The condition of our Do loop has something to do with the text-not-found value, right? It keeps going until the desired text is no longer found. Did I say run it? Oh no! You may have found an endless loop! Before you run it, you will need to add intPosition +=1 to add one to your position. Otherwise it keeps finding the same text…FOREVER!!!!! Since you are adding 1 to intPosition, this may change the value you choose for your loop condition.

And finally… Save your program and run it. If your program freezes you are in an endless loop. Try the stop button. The computer is doing the same thing over and over and over and over

And when it finally works… You may need to change some things about your loop if it is endless CONGRATULATIONS !