Microsoft Visual Basic 2010 Step by Step eBook
Chapter 6 Using Decision Structures 173 Case 65 Label1.Text = "Time to retire and have fun!" Case Else Label1.Text = "You're a g ...
174 Part II Programming Fundamentals Click the Label control in the Toolbox, and then draw a label near the top of the form to ...
Chapter 6 Using Decision Structures 175 When you’ve finished setting properties, your form looks similar to this: Now you’ll ent ...
176 Part II Programming Fundamentals The first line copies the name of the selected list box item to the Text property of the th ...
Chapter 6 Using Decision Structures 177 Click the Quit button to stop the program. The program stops, and the development envi ...
178 Part II Programming Fundamentals Type the following program statements in the lstCountryBox_MouseHover event procedure: If ...
Chapter 6 Using Decision Structures 179 Chapter 6 Quick Reference To Do This Write a conditional expression Use one of the follo ...
...
181 Chapter 7 Using Loops and Timers After completing this chapter, you will be able to: n Use a For... Next loop to execute sta ...
182 Part II Programming Fundamentals The syntax for a For... Next loop looks like this: For variable = start To end statements t ...
Chapter 7 Using Loops and Timers 183 Using a Counter Variable in a Multiline TextBox Control A counter variable is just like any ...
184 Part II Programming Fundamentals Type the following program statements in the procedure: Dim i As Integer Dim Wrap As Stri ...
Chapter 7 Using Loops and Timers 185 Click the Loop button. The For... Next loop displays 10 lines in the text box, as shown h ...
186 Part II Programming Fundamentals specify a different value for start in the loop and then use the Step keyword to increment ...
Chapter 7 Using Loops and Timers 187 Create a new Windows Forms Application project named My For Loop Icons. Your new project ...
188 Part II Programming Fundamentals combines a path, a file name, and the .ico extension to create four valid file names of ico ...
Chapter 7 Using Loops and Timers 189 Click OK to display the next face. Your screen looks something like this: Click OK three ...
190 Part II Programming Fundamentals Use a global counter Open the Code Editor for the My For Loop Icons project. Move the inse ...
Chapter 7 Using Loops and Timers 191 When you’re finished, click the Close button on the form to stop the program. As you can ...
192 Part II Programming Fundamentals Writing Do Loops As an alternative to a For... Next loop, you can write a Do loop that exec ...
«
6
7
8
9
10
11
12
13
14
15
»
Free download pdf