Visual Basic In No Time

Visual Basic In No Time

By (author) 

List price: US$33.00

Currently unavailable

Add to wishlist

AbeBooks may have this title (opens in new window).

Try AbeBooks


Visual basic 6 In no time From beginner to expert - in no time Simple easily understandable from the basics onwards Clear clearly structured Immediate step by step, direct and to the point*Preparing Visual Basic for the first start *The first Visual Basic program *The ABC of programming *Control elements and forms *The computer makes decisions *The computer runs on top form using loops *Files as the computers long term memory *A slide-show for the PC *Dot, dot, brush stroke *Advanced Visual Basic *Playing around with Visual Basic *Extensive function referencesshow more

Product details

  • Paperback | 320 pages
  • 187 x 235 x 16mm | 577g
  • Pearson Education (US)
  • Prentice Hall
  • Upper Saddle River, United States
  • German
  • 0130660086
  • 9780130660084

Table of contents

Contents Introduction 13 Tips for a successful start 15 Notes of thanks and contacting the author 16 Preparing Visual Basic for the first time 17 Installing the working model of Visual Basic 6.0 18 Procedure: installing the working model 19 Creating a directory for your sample program 24 Activating the option 'required variable declaration' 24 Procedure: Activating the 'required variable declaration' option 25 Activating the 'confirm changes to be saved' option 26 Procedure: Activating the 'Confirm changes to be saved' option 26 Modifying the fonts and colours of your settings 27 Procedure: modifying the font and font size 27 Familiarising yourself with the 'fittings' 28 Familiarising yourself with the help functions 29 Creating a new Visual Basic project on a trial basis 32 Procedure: creating a new Visual Basic project 32 Is Visual Basic difficult to learn? 32 What's the next step? 33 The very first Visual Basic program 35 Say hello world (dear computer) 36 When feet are involved 43 The idea of variables 47 The response of control elements 48 Optical fine tuning 50 Setting properties in the properties window 51 And now for the entry check 53 From feet to metres and back 57 And now for something completely different 61 And now using gallons- selection using a menu 64 Extensions required 69 What's the next step? 72 The ABC of programming 73 The role of commands 75 The role of syntax 77 From theory to practice 78 When Visual Basic 'complains' 79 The general structure of a Visual Basic program 81 Everything happens in procedures 83 An instance event procedure 83 Private or public? 83 Comments 84 The computer's memory- variables 84 Variables have to be declared 85 First declare, then assign 85 The role of the data type 86 Constants- when everything should remain the same 87 Visual Basic knows many constants 88 How many days old are you? 89 A computer can also compute 90 The computer makes decisions 91 An example for a very simple decision 92 When computers 'cheat' 94 Program loops 96 Simple outputs using the Msgbox function 96 Easy entries using the Inputbox function 98 Useful functions 100 Command, function - what's the difference 101 Working with projects 102 Creating a new project 102 Opening an existing project 103 Saving a project 104 What's the next step? 105 Control elements and forms 107 An introduction to the toolbox 109 How does a control elements appear on the form? 111 Configuring properties 112 The role of events 114 The form holds everything together 115 Getting to know the form 115 Something worth knowing about forms 116 Output using the label 116 Getting to know the label 117 Something worth knowing about labels 118 Input using the text box 118 Getting to know the text box 118 Something worth knowing about text boxes 119 The command button in action 120 Getting to know the command button 120 Something worth knowing about command buttons 120 Using the frame for better clarity 121 Getting to know the frame 121 Something worth knowing about frames 121 Using the option box and check box for selection 122 Getting to know the check box 122 Getting to know the option box 123 something worth knowing about option boxes and check boxes 124 The picture box and displaying colour pictures 124 Getting to know the display 124 Something worth knowing about picture boxes and displays 126 Loading images while the program is running 126 Other control elements also have a picture property 127 Line and figure control elements for added effect 127 Getting to know the line control element 127 Something worth knowing about lines and shapes 128 Regularity using the timer 128 Getting to know the timer 129 Something worth knowing about the timer 129 How do control elements respond to mouse clicks? 130 The Click event 130 The DblClick event 130 The MouseDown event 131 The MouseUp event 131 The MouseMove event 131 Getting to know the click event 131 Getting to know the MouseMove event 133 How do control elements react to keyboard entries? 134 The KeyPress event 134 The KeyDown event 134 The KeyUp event 135 Getting to know the KeyPress event 135 Name conventions with control elements 135 The computer thinks for itself 137 Can computers really think? 138 The idea of comparing instructions 139 An introduction to the If command 141 Exercise 1: If command with True condition 142 Exercise 2: If command with false condition 143 Exercise 3: If command with unequal operator (1) 143 Exercise 4: If command with unequal operator (2) 143 Exercise 5: If command with NOT operator 143 Exercise 6: If command with IsNumeric function 144 When Aunt Elsie comes to visit 144 Exercise 7: If command with Else section 145 When Aunt Elsie brings a friend 146 Logical combinations 147 When If and Else are not enough- The Select Case command 148 An exercise with the Select Case command 149 One final exercise 151 Summary 151 A suggested solution for the click event procedure 152 The computer reaches top form using loops 153 Just how quick is your PC? 155 The idea of program loops 156 The For Next command 157 Visual Basic learns to count 158 Visual Basic can also count backwards 160 Visual Basic can also count 'crookedly' 160 When the computer produces nonsense 161 The Do Loop command 163 Just look what you could have won 163 The handsome profit 165 Drawing lottery numbers 166 When loops have to take an early bath- the Exit command 170 Filling list fields 171 Removing elements from a list box 175 So which element is selected? 175 What happens if several entries were selected? 176 a close relative: the combination box 177 Summary and next step 178 Files as the computer's long-term memory 179 What is a file? 181 Files save data 181 Opening, accessing, closing- the principle of file access 182 What does reading and writing mean? 183 The secret of the channel number 184 Saving texts 184 Selecting saved texts 185 The Line Input command 186 The Input function for reading the entire file content 187 Saving and reading numbers 188 Changing binary code 188 Saving and reading with Put and Get 189 An overview of all file access commands 191 Lottery numbers for the entire year 192 An explanation of the program 194 A file simulator to test 195 Summary and outlook 195 A slide show for the PC 197 Activation begins 199 Step 1: Starting Visual Basic and creating a standard exe project 199 The start form is created 201 The programming begins 203 The second form displays the slides 208 An initial test run 210 Suggestions for expansion 211 SAving file paths in the directory 212 From slide show to screen saver 213 Point, point, brush stroke 215 An introduction to the image viewer 217 When a form is 'chief'- the MDI form 218 The application framework 219 The application contains a menu bar 221 The 'secret' of ActiveX 222 Displaying the file selection dialogue box 224 Displaying a selected image file 226 Ending the program 227 Small improvements to the menu 228 Improving the image display 228 The window menu is implemented 229 The application contains a toolbar 231 The application contains a status bar 236 A favourites list for favourite images 238 The favourites have to be saved somewhere 243 Access to the clipboard 248 Suggestions for expansion 251 Closing all Windows at once 252 Minimising all windows 252 Selecting several files 253 The Windows Common controls 255 Adding the Windows Common controls to the toolbox 257 Selecting a date with the date picker 258 Summary and overview 259 More advanced Visual Basic 261 The formatted output of numbers 263 Rounding numbers 265 Magic with strings 265 Separating a null character 267 Extracting a filename from a path name 267 The role of ANSI codes 268 Defining functions 269 Entering functions 270 Calling functions 270 Determining the return value of the function 271 Functions with arguments 271 Functions with optional arguments 272 Calling with names arguments 273 Procedures are functions without return values 273 When is Easter? 274 'Tuning' with API functions 276 The Declare command 278 The API viewer as a friendly adviser 279 Calling the API viewer 280 Searching through list boxes quickly 281 An API viewer on the Internet 287 Variables in XXL with arrays 287 Declaring arrays 288 The LBound and Ubound functions 288 The array function 289 Dynamic arrays 289 Deleting arrays 290 The Collection object is king 290 Creating a Collection object 290 Adding elements 291 Adding elements with a key 291 Determining the number of elements 292 Removing elements 292 The For Each program loop 292 The With command gives a better overview 293 Not nice at all- the runtime error 294 The On Error Goto command 294 Constructing an error handling routine 295 The Err object 297 The Resume command 298 Querying runtime errors directly 299 Don't worry about bugs- the Visual Basic debugger 300 The debugger window 301 The most important debugging techniques 301 Interrupting a program using [Ctrl]+[Pause] 302 Stopping a program using a Stop command 302 Program execution in single-step mode using [F8] 302 Ending the current procedure using [Ctrl]+[A A ]+[F8] 303 Executing to the cursor position 303 Executing to the end of a loop 303 Continuing runtime from another position using [Ctrl]+[F9] 304 Repeating the last command 304 Setting break points using [F9] 304 Setting watches 305 Displaying the value of an expression 305 Working with the direct window 306 The local window 308 Compiling fully 309 Small, compact, independent- from project to Exe file 310 Playing around with Visual Basic 313 Playing wave files 315 Playing all wave files in the Windows directory 316 Making an MP3 player 317 The conversion begins 318 Selecting the title information 323 Displaying the play duration 325 Suggestions for expansions 327 Custard pie throwing without any injuries 327 Expansion suggestions 333 A little bit of maths 333 Small (legal) card tricks 336 The conversion of 'Video poker' 336 Postscript and outlook 340 Appendix: Visual Basic reference 341 Arithmetic functions 342 Data functions 343 String functions 344 Query functions 346 Conversion functions 346 General functions 348 Index 349show more