وبلاگ بلیان

Programming in Visual Basic 2008, 7th Edition

معرفی کتاب «Programming in Visual Basic 2008, 7th Edition» نوشتهٔ Julia Case Bradley, Anita C. Millspaugh، منتشرشده توسط نشر McGraw-Hill; McGraw-Hill Higher Education در سال 2008. این کتاب در فرمت pdf، زبان انگلیسی ارائه شده است. «Programming in Visual Basic 2008, 7th Edition» در دستهٔ بدون دسته‌بندی قرار دارد.

the Author Team Of Julia Bradley And Anita Millspaugh Remain The Guiding Light In Programming With Visual Basic 2008 For Countless Students Around The World. How Better To Master The Most Popular Object-oriented Programming Language Than To Use The Bestselling Textbook? Be At The Cutting Edge Of Technology With Examples, Feedback Questions, And A Full Hands On Programming Example. Apply The Concepts Yourself With Case Studies And Exercises. Screen Captures, Step-by-step Exercises, And Thorough Appendices Ensure That Programming Excellence Begins Here. Title Page......Page 2 Copyright Page......Page 3 Preface......Page 4 About the Authors......Page 18 BRIEF CONTENTS ......Page 20 CONTENTS......Page 22 1: Introduction to Visual Basic 2008 ......Page 30 Writing Windows Applications with Visual Basic ......Page 31 Programming Languages—Procedural, Event Driven, and Object Oriented......Page 32 The Object Model ......Page 33 Microsoft’s Visual Studio ......Page 34 The Three-Step Process......Page 35 Visual Basic Application Files ......Page 36 Default Environment Settings ......Page 37 The New Project Dialog ......Page 38 The IDE Main Window ......Page 40 The Document Window ......Page 41 Help ......Page 42 Set Up Your Workspace ......Page 43 Plan the Project ......Page 47 Define the User Interface ......Page 48 Set Properties ......Page 52 Write Code ......Page 58 Visual Basic Code Statements ......Page 59 Code the Event Procedures for Hello World ......Page 61 Run the Project ......Page 64 Save Your Work ......Page 65 Open the Project ......Page 66 Modify the Project ......Page 67 A Sample Printout ......Page 74 Syntax Errors ......Page 75 Logic Errors ......Page 78 Naming Rules and Conventions for Objects ......Page 79 Visual Studio Help ......Page 80 Viewing Help Topics ......Page 81 Managing Windows ......Page 84 Your Hands-On Programming Example ......Page 85 2: User Interface Design......Page 96 Introducing More Controls ......Page 97 Text Boxes ......Page 98 Masked Text Boxes ......Page 99 Displaying Text on Multiple Lines ......Page 100 Group Boxes ......Page 101 Picture Boxes ......Page 102 Using Smart Tags ......Page 105 Drawing a Line ......Page 106 Selecting Multiple Controls ......Page 107 Setting Properties for Multiple Controls ......Page 108 Designing the User Interface ......Page 109 Defining Keyboard Access Keys ......Page 110 Setting the Tab Order for Controls ......Page 111 Setting the Form’s Location on the Screen ......Page 113 Creating ToolTips ......Page 114 Resetting the Focus ......Page 116 Setting Visibility at Run Time ......Page 117 Setting Properties Based on User Actions ......Page 118 Using Radio Buttons for Selecting Colors ......Page 119 Changing Multiple Properties of a Control ......Page 121 Downloading and Using the Line and Shape Controls ......Page 122 Your Hands-On Programming Example ......Page 124 Good Programming Habits ......Page 129 3: Variables, Constants and Calculations......Page 138 Data—Variables and Constants ......Page 139 Data Types......Page 140 Naming Conventions ......Page 141 Constants: Named and Intrinsic ......Page 142 Declaring Variables ......Page 144 Scope and Lifetime of Variables ......Page 146 Converting Strings to a Numeric Data Type ......Page 149 Arithmetic Operations ......Page 151 Order of Operations ......Page 152 Using Calculations in Code ......Page 153 Option Explicit and Option Strict ......Page 154 Converting between Numeric Data Types ......Page 156 Performing Calculations with Unlike Data Types ......Page 157 Rounding Numbers ......Page 158 Using Format Specifier Codes ......Page 159 Choosing the Controls for Program Output ......Page 161 Planning the Project ......Page 162 The Project Coding Solution ......Page 165 Handling Exceptions ......Page 166 Try/Catch Blocks ......Page 167 Displaying Messages in Message Boxes ......Page 169 Using Overloaded Methods ......Page 170 Testing Multiple Fields ......Page 172 Counting and Accumulating Sums ......Page 173 Your Hands-On Programming Example ......Page 174 4: Decisions and Conditions......Page 188 If Statements ......Page 189 The Helpful Editor ......Page 191 Comparing Numeric Variables and Constants ......Page 192 Comparing Strings ......Page 193 Comparing Uppercase and Lowercase Characters ......Page 195 Compound Boolean Expressions ......Page 196 Nested If Statements ......Page 198 Using If Statements with Radio Buttonsand Check Boxes ......Page 201 Checking the State of a Radio Button Group ......Page 203 Displaying the Message String ......Page 204 Displaying Multiple Buttons ......Page 206 Checking for a Required Field ......Page 208 Performing Multiple Validations ......Page 209 The Case Structure ......Page 210 Sharing an Event Procedure ......Page 212 Calling Event Procedures ......Page 214 Your Hands-On Programming Example ......Page 216 Debugging Visual Basic Projects ......Page 222 Writing Debug Output ......Page 223 Forcing a Break ......Page 224 Stepping through Code ......Page 225 The Autos Window ......Page 227 Debugging Step-by-Step Tutorial ......Page 228 5: Menus,Common Dialog Boxes, Sub Procedures, and Function Procedures......Page 242 Defining Menus ......Page 243 Creating a Menu—Step-by-Step ......Page 248 Coding for Menu Items ......Page 249 Standards for Windows Menus ......Page 251 Displaying a Windows Common Dialog Box ......Page 252 Using the Information from the Dialog Box ......Page 253 Creating Context Menus ......Page 255 Creating a Context Menu—Step-by-Step ......Page 256 Sharing Procedures ......Page 257 Creating a New Sub Procedure ......Page 258 Passing Arguments to Procedures ......Page 259 Writing Function Procedures ......Page 260 Functions with Multiple Parameters ......Page 263 Breaking Calculations into Smaller Units ......Page 264 Basing a New Project on an Existing Project ......Page 266 Your Hands-On Programming Example ......Page 267 6: Multiform Projects......Page 282 Creating New Forms ......Page 283 Adding and Removing Forms ......Page 285 Setting Assembly Information ......Page 286 Using the Splash Screen Template ......Page 289 Making the Splash Form Display First ......Page 290 Showing a Form ......Page 291 Hiding or Closing a Form ......Page 292 Writing Event Procedures for Selected Events ......Page 293 Scope ......Page 296 Lifetime ......Page 297 Namespaces ......Page 298 Guidelines for Declaring Variables and Constants ......Page 299 Running Your Program Outside the IDE ......Page 300 Your Hands-On Programming Example ......Page 301 7: Lists, Loops, and Printing......Page 316 List Boxes and Combo Boxes ......Page 317 Filling a List ......Page 318 Referencing the Items Collection ......Page 321 Removing an Item from a List ......Page 322 Clearing a List ......Page 323 List Box and Combo Box Events ......Page 324 Do/Loops ......Page 325 Using a Do/Loop with a List Box ......Page 327 For/Next Loops ......Page 328 Altering the Values of the Loop Control Variables ......Page 330 Exiting Loops ......Page 331 Skipping to the Next Iteration of a Loop ......Page 332 Selecting the Entry in a Text Box ......Page 333 Sending Information to the Printer ......Page 334 The PrintDocument Component ......Page 335 Getting Started with Printing—Step-by-Step ......Page 337 Aligning Decimal Columns ......Page 339 Displaying a Print Preview ......Page 340 Adding a PrintPreview Dialog to thePrint Project—Step-by-Step ......Page 341 Printing Multiple Pages ......Page 342 Your Hands-On Programming Example ......Page 343 8: Arrays......Page 358 Subscripts ......Page 359 Valid Subscripts ......Page 360 For Each/Next Statements ......Page 361 Structures ......Page 362 Including an Array in a Structure ......Page 363 Adding to the Correct Total ......Page 364 Table Lookup ......Page 366 Using List Boxes with Arrays ......Page 369 Multidimensional Arrays ......Page 370 Printing a Two-Dimensional Table ......Page 372 Summing a Two-Dimensional Table ......Page 373 Lookup Operation for Two-Dimensional Tables ......Page 374 Your Hands-On Programming Example ......Page 376 9: Web Applications......Page 390 Client/Server Web Applications......Page 391 IIS Web Sites ......Page 393 Web Page Files ......Page 394 Web Forms in the Visual Studio IDE ......Page 395 Creating Your First Web Form—Step-by-Step ......Page 396 Controls ......Page 398 Event Handling ......Page 399 Debugging ......Page 400 Testing in Other Browsers ......Page 401 Using Tables for Layout ......Page 402 Absolute Positioning ......Page 404 Including Images on Web Pages ......Page 405 Cascading Style Sheets ......Page 407 Adding a Second Web Page ......Page 412 Using the Validator Controls ......Page 414 Retaining the Contents of Controls ......Page 415 Retaining the Values of Variables ......Page 416 AJAX ......Page 417 Managing Web Projects ......Page 418 Your Hands-On Programming Example ......Page 419 10: Database Applications......Page 430 Database Terminology ......Page 431 XML Data ......Page 432 Using ADO.NET and Visual Basic ......Page 433 Data Access in Visual Studio ......Page 434 Datasets ......Page 435 A Windows Database Application—Step-by-Step ......Page 436 The Database Schema File ......Page 441 The Data Sources Window ......Page 442 Database Details Program—Step-by-Step ......Page 444 Converting to Combo Box Selection—Step-by-Step ......Page 446 Selecting Fields from the Table ......Page 449 Choosing the Control Type for Fields ......Page 450 Selecting Records Using Web Forms ......Page 452 Creating the Web Selection Application—Step-by-Step ......Page 453 Creating a LINQ Project—Step-by-Step ......Page 460 A FileSystem LINQ Example ......Page 461 Your Hands-On Programming Example ......Page 463 11: Data Files......Page 468 Simple VB File I/O ......Page 469 Writing and Reading Delimited Files ......Page 470 Writing Data in a File Using a StreamWriter ......Page 476 Reading Data from a File Using a StreamReader ......Page 478 OpenFileDialog Component Properties ......Page 481 Displaying the Open File Dialog Box ......Page 482 The Open and Write File Program ......Page 484 Saving the Contents of a List Box ......Page 485 Checking for Existence of the File ......Page 486 Saving the File ......Page 487 The FormClosing Event Procedure ......Page 488 Your Hands-On Programming Example ......Page 489 12: OOP: Creating Object-Oriented Programs......Page 498 Objects ......Page 499 Object-Oriented Terminology ......Page 500 Multitier Applications ......Page 502 Designing Your Own Class ......Page 503 Creating Properties in a Class ......Page 504 Class Methods ......Page 505 Constructors and Destructors ......Page 506 Creating a New Class—Step-by-Step ......Page 507 Property Procedures with Mixed Access Levels ......Page 512 Creating a New Object Using a Class ......Page 513 Defining and Using a New Object—Step-by-Step ......Page 514 Instance Variables versus Shared Variables ......Page 516 Adding Shared Properties to the Step-by-Step Exercise ......Page 518 Destructors ......Page 519 Constructors in Inheritance ......Page 520 Overriding Methods ......Page 521 Creating a Derived Class Based on BookSale ......Page 522 Adding Inheritance to the Step-by-Step Exercise ......Page 523 Inheriting Form Classes ......Page 526 Passing Values to a Summary Form ......Page 530 Passing Objects as Properties ......Page 532 Using the Object Browser ......Page 533 Examining VB Classes ......Page 535 Your Hands-On Programming Example ......Page 536 13: Graphics, Animation, Sound, and Drag-and Drop......Page 554 Steps for Drawing Graphics ......Page 555 Pen and Brush Objects ......Page 556 The Coordinate System ......Page 558 Graphics Methods ......Page 559 Random Numbers ......Page 561 Controlling Pictures at Run Time ......Page 563 The Timer Component ......Page 566 Scroll Bar Properties ......Page 568 A Programming Example ......Page 570 A Sound-Playing Program ......Page 572 Using the Windows Media Player Control ......Page 574 The Source Object ......Page 576 The Target Object ......Page 577 The Drag-and-Drop Program ......Page 578 Dragging and Dropping an Image ......Page 579 Your Hands-On Programming Example ......Page 581 14: Additional Topics in Visual Basic......Page 590 The ErrorProvider Component ......Page 591 The MaxLength and CharacterCasing Properties ......Page 594 Field-Level Validation ......Page 595 Capturing Keystrokes from the User ......Page 598 Code Snippets ......Page 599 Multiple Document Interface ......Page 600 Creating an MDI Project ......Page 601 Adding a Window Menu ......Page 602 Toolbars ......Page 604 Status Bars ......Page 606 The Calendar Controls ......Page 607 The WebBrowser Control ......Page 610 A WebBrowser Program ......Page 611 Nodes, Elements, and Attributes ......Page 613 Writing and Reading an XML File ......Page 620 WPF Interoperability ......Page 622 Writing a WPF Application ......Page 626 Creating a WPF Hello World Application—Step-by-Step ......Page 628 APPENDIX A: Answers to Feedback Questions......Page 636 APPENDIX B: Methods and Functions for Working with Dates, Financial Calculations, Mathematics, and String Operations......Page 650 The DateTime Structure ......Page 651 Retrieving the System Date and Time ......Page 652 Date Variables ......Page 653 Checking for the Day of the Week ......Page 654 The Pmt Function ......Page 655 The Rate Function ......Page 656 Mathematical Functions ......Page 657 Working with Strings ......Page 659 Methods for Conversion between Data Types ......Page 661 Functions for Checking Validity ......Page 662 Functions for Formatting Output ......Page 663 APPENDIX C: Tips and Shortcuts for Mastering the Environment......Page 664 Close or Hide Extra Windows ......Page 665 Use the Full Screen ......Page 667 Modify the Screen Layout ......Page 668 Set Options for Your Work ......Page 669 Use Snap Lines to Help Align Controls ......Page 670 Use Shortcuts in the Editor ......Page 671 Use Keyboard Shortcuts When Editing Code ......Page 672 Split the Editor Window ......Page 673 Use Context-Sensitive Help ......Page 674 Deploy Applications ......Page 675 APPENDIX D: Security......Page 676 Authorization and Impersonation ......Page 677 Code Access Security ......Page 678 Glossary ......Page 680 Index ......Page 691 The author team of Bradley and Millspaugh remain the guiding light in Programming with Visual Basic 2008 for countless students around the world. This updated edition of their bestseller contains examples, feedback questions, screen captures, step-by-step exercises, and thorough appendices
دانلود کتاب Programming in Visual Basic 2008, 7th Edition