Buy Visual Basic Design Patterns Book by James W. Cooper
Book 1
Book 2
Book 3
Book 1
Book 2
Book 3
Book 1
Book 2
Book 3
Book 1
Book 2
Book 3
Home > Computing and Information Technology > Computer programming / software engineering > Programming and scripting languages: general > Visual Basic Design Patterns: VB 6.0 and VB.NET
Visual Basic Design Patterns: VB 6.0 and VB.NET

Visual Basic Design Patterns: VB 6.0 and VB.NET


     0     
5
4
3
2
1



Out of Stock


Notify me when this book is in stock
X
About the Book

Design patterns provide programmers with a convenient way to reuse object-oriented code across projects and between programmers, offering easy, time-saving solutions to commonly recurring problems in software design. A practical guide to writing Visual Basic (VB6 and VB.NET) programs using some of the most common design patterns, Visual Basic Design Patterns is a tutorial for people who want to learn about design patterns and how to use them in their work. This book also provides a convenient way for VB6 programmers to migrate to VB.NET and use its more powerful object-oriented features. Written from a Visual Basic perspective, this book intends to make you comfortable with using design patterns by laying out the concept of patterns in a practical fashion. Organized as a series of short chapters that each describe a design pattern, Visual Basic Design Patterns provides one or more complete working visual examples of programs using that pattern, along with UML diagrams illustrating how the classes interact. Each example is a visual program that you can run and study on the companion CD making the pattern as concrete as possible. Programmers using this book will see significant improvement in their work by employing the following key concepts: Applying "tried-and-true" object-oriented design patterns in Visual Basic applications. Helping advance programming skills with the power of patterns. Understanding the interactions between classes through the use of UML diagrams. Getting comfortable using design patterns effectively and start using them in day-to-day Visual Basic programming. The idea behind design patterns is simple: it's a catalogue of common interactions between objects that programmers have found useful, enabling them to quickly and easily employ them in their programs. Visual Basic Design Patterns provides practical advice on how to use these patterns in everyday programming. 0201702657B07122001

Table of Contents:
Preface. Acknowledgements. I. OBJECT-ORIENTED PROGRAMMING IN VB. 1. What Are Design Patterns? Defining Design Patterns. The Learning Process. Studying Design Patterns. Notes on Object Oriented Approaches. VB Design Patterns. How this Book is Organized. 2. UML Diagrams. Inheritance. Interfaces. Composition. Annotation. WithClass UML Diagrams. Visual Basic Project Files. 3. Using Classes and Objects in VB. A Simple Temperature Conversion Program. Building a Temperature Class. Converting to Kelvin. Putting the Decisions into the Temperature Class. Using Classes for Format and Value Conversion. Handling Unreasonable Values. A String Tokenizer Class. Classes as Objects. Class Containment. Class Initialization. Classes and Properties. Another Interface Example—The Voltmeter. A vbFile Class. Programming Style in Visual Basic. Summary. 4. Object-Oriented Programming. Building VB Objects. Creating Instances of Objects. A VB Measurement Program. Methods Inside Objects. Variables. Passing Arguments by Reference and by Value. Object Oriented Jargon. 5. Building Your Own VB Control. A Highlighted Text Field. Resizing a User Control. Testing Your HiText Controls. Adding Properties and Methods to User Controls. Compiling a User Control. Summary. Program on the CD-ROM. 6. Inheritance and Interfaces. Interfaces. An Investment Simulator. Writing the Simulator. Indicators for Using an Interface. Reusing Common Methods. Hidden Interfaces. Summary. Programs on the CD-ROM. 7. Introduction to VB.NET. Syntax Differences in VB.NET. Improved Function Syntax. Variable Declarations and Scoping. Objects in VB.NET. Compiler Options. Numbers in VB.NET. Properties in VB6 and VB.NET. Shorthand Equals Syntax. Managed Languages and Garbage Collection. Classes in VB.NET. Building a VB7 Application. The Simplest Window Program in VB.NET. Inheritance. Constructors. Drawing and Graphics in VB.NET. Tooltips and Cursors. Overloading. Inheritance. Namespaces. Creating a Square from a Rectangle. Public, Private, and Protected. Overriding Methods in Derived Classes. Overloading and Shadowing. Overriding Windows Controls. Interfaces. Summary. Programs on the CD-ROM. 8. Arrays, Files and Exceptions in VB.Net. Arrays. Collection Objects. ArrayLists. Hashtables. SortedLists. Exceptions. Multiple Exceptions. Throwing Exceptions. File Handling. The File Object. Reading a Text File. Writing a Text File. Exceptions in File Handling. Testing for End of File. The FileInfo Class. A vbFile Class. Programs on the CD-ROM. II. CREATIONAL PATTERNS. 9. The Simple Factory Pattern. How a Simple Factory Works. Sample Code. The Two Derived Classe. Building the Simple Factory. Using the Factory. Writing the Factory Pattern in VB.NET. Factory Patterns in Math Computation. Programs on the CD-ROM. 10. The Factory Method. The Swimmer class. The Events Classes. Straight Seeding. Circle Seeding. Our Seeding Program. Other Factories. The Seeding Program in VB7. When to Use a Factory Method. Programs on the CD-ROM. 11. The Abstract Factory Pattern. A GardenMaker Factory. How the User Interface Works. Creating an Abstract Factory Using VB7. The Picture Box. Handling the RadioButton and Button Events. Adding More Classes. Consequences of Abstract Factory. Programs on the CD-ROM. 12. The Singleton Pattern. Creating Singleton Using a Static Method. Catching the Error. Providing a Global Point of Access to a Singleton. The MSComm Control as a Singleton. Available Ports. Writing a Singleton in VB.NET. Using a Private Constructor. Error Handling in Our Singleton. A VB.NET SpoolDemo Program. The Global Point of Access. Other Consequences of the Singleton Pattern. Programs on Your CD-ROM. 13. The Builder Pattern. An Investment Tracker. Calling the Builders. The List Box Builder. The Checkbox Builder. Writing a Builder in VB.NET. The Stock Factory. The CheckChoice Class. The ListboxChoice Class. Using the Items Collection in the ListBox Control. The Final Choice. Consequences of the Builder Pattern. Programs on the CD-ROM. 14. The Prototype Pattern. Cloning in Visual Basic. Using the Prototype. Using the Prototype Pattern. Additional Methods in Subclasses. Dissimilar Classes with the Same Interface. Prototype Managers. Writing a Prototype in VB7. Consequences of the Prototype Pattern. Programs on the CD-ROM. Summary of Creational Patterns. III. Structural Patterns. 15. The Adapter Pattern. Moving Data between Lists. Using the MSFlexGrid. Using a TreeView. The Object Adapter. Two Way Adapters. Using Adapters in VB7. TreeView Adapters for VB.NET. Adapting a DataGrid. The Class Adapter. Two-Way Adapters. Object versus Class Adapters in VB.NET. Pluggable Adapters. Adapters in VB. Programs on the CD-ROM. 16. The Bridge Pattern. The visList Classes. The Class Diagram. Extending the Bridge. ActiveX Controls as Bridges. The Bridge Pattern in VB.NET. The ListBox VisList Class. The Grid VisList Class. Loading the Data. Changing the Data Side of the Bridge. Consequences of the Bridge Pattern. Programs on your CD-ROM. 17. The Composite Pattern. An Implementation of a Composite. Computing Salaries. The Employee Classes. The Subords Class. The Boss Class. Building the Employee Tree. Self-Promotion. Doubly Linked Lists. Consequences of the Composite Pattern. A Simple Composite. Composites in VB. The Composite in VB.NET. The Enumerator. Multiple Boss Constructors. Other Implementation Issues. Programs on the CD-ROM. 18. The Decorator Pattern. Decorating a CoolButton. Using a Decorator. Using ActiveX Controls as Decorators. A Decorator In VB.NET. Nonvisual Decorators. Decorators, Adapters and Composites. Consequences of the Decorator Pattern. Programs on the CD-ROM. 19. The Facade Pattern. What is a Database? Getting Data out of Databases. Kinds of Databases. ODBC. Microsoft Database Connection Strategies. Database Structure. The DBase Class. Building the Facade Classes. The Stores Class. Building the Stores and Foods Tables. Building the Price Table. Building the Price Query. Summary of the Facade Pattern. ADO Database Access in VB6. The ADO Connection. Adding and Seeking Rows Table Rows. Using the ADO Extensions. The ADO Dbase Class. Database Access in VB.NET. Using ADO.NET. Connecting to a Database. Reading Data from a Database Table. Executing a Query. Deleting the Contents of a Table. Adding Rows to Database Tables Using ADO.NET. Making the VB.NET ADO Facade. The DBTable class. Creating Classes for Each Table. Storing the Prices. Loading the Database Tables. The Final Application. What Constitutes the Facade? Consequences of the Facade. Programs on the CD-ROM. 20. The Flyweight Pattern. Discussion. Example Code. The Class Diagram. Selecting A Folder. Writing a Flyweight Folder in VB.NET. Flyweight Uses in VB. Sharable Objects. Copy-on-Write Objects. Programs on the CD-ROM. 21. The Proxy Pattern. Sample Code. Writing a Proxy in VB.Net. Proxies in VB. Copy-on-Write. Comparison with Related Patterns. Programs on the CD-ROM. Summary of Structural Patterns. IV. BEHAVIORAL PATTERNS. 22. Chain of Responsibility. Applicability. Sample Code. The List Boxes. Programming a Help System. Receiving the Help Command. A Chain or a Tree? Chain of Responsibility in VB.NET. Kinds of Requests. Examples in VB. Consequences of the Chain of Responsibility. Programs on the CD-ROM. 23. The Command Pattern. Motivation. Command Objects. Building Command Objects. Arrays of Commands. Consequences of the Command Pattern. Providing Undo. The Command Pattern in VB.NET. The CommandHolder Interface. Handling Undo Commands in VB.NET. The Command Pattern in the VB Language. Programs on the CD-ROM. 24. The Interpreter Pattern. Motivation. Applicability. A Simple Report Example. Interpreting the Language. Objects Used in Parsing. Reducing the Parsed Stack. Implementing the Interpreter Pattern. The Syntax Tree. Building an Interpreter in VB. The Parse Objects. Consequences of the Interpreter Pattern. Programs on the CD-ROM. 25. The Iterator Pattern. Motivation. Sample VB6 Code. Fetching an Iterator. Filtered Iterators. The Filtered Iterator. Iterators in VB.NET. Consequences of the Iterator Pattern. Programs on the CD-ROM. 26. The Mediator Pattern. An Example System. Interactions between Controls. Sample Code. Initialization of the System. Mediators and Command Objects. The Mediator in VB.Net. Initialization. Handling the Events for the New Controls. Consequences of the Mediator Pattern. Single Interface Mediators. Implementation Issues. Programs on the CD-ROM. 27. The Memento Pattern. Motivation. Implementation. Sample Code. A Cautionary Note. Command Objects in the User Interface. Handling Mouse and Paint Events. Writing a Memento in VB.NET. Consequences of the Memento. Programs on the CD-ROM. 28. The Observer Pattern. Watching Colors Change. Writing an Observer in VB.NET. The Message to the Media. Consequences of the Observer Pattern. Programs on the CD-ROM. 29. The State Pattern. Sample Code. Switching Between States. How the Mediator Interacts with the State Manager. Handling the Fill State. Handling the Undo List. Filling Circles in VB. A State Pattern in VB.NET. Mediators and the God Class. Consequences of the State Pattern. State Transitions. Programs on the CD-ROM. 30. The Strategy Pattern. Motivation. Sample Code. The Context. The Program Commands. The Line and Bar Graph Strategies. Drawing Plots in VB. A Strategy Pattern in VB.NET. Consequences of the Strategy Pattern. Programs on the CD-ROM. 31. The Template Method Pattern. Motivation. Kinds of Methods in a Template Class. Sample Code. Drawing a Standard Triangle. Drawing an Isosceles Triangle. The Triangle Drawing Program. Templates and Callbacks. Summary and Consequences. Programs on the CD-ROM. 32. The Visitor Pattern. Motivation. When to Use the Visitor Pattern. Sample Code. Visiting the Classes. Visiting Several Classes. Bosses are Employees Too. Catch-All Operations with Visitors. Double Dispatching. Why Are We Doing This? Traversing a Series of Classes. Writing a Visitor in VB. Consequences of the Visitor Pattern. Programs on the CD-ROM. Bibliography. Index. 0201702657T11152001

About the Author :
James W. Cooper is a research staff member in the Advanced Information Retrieval and Analysis Department at the IBM Thomas J. Watson Research Center. He is also a columnist for Java Pro magazine and a reviewer for Visual Basic Programmer's Journal. He has published 14 books, which include Principles of Object-Oriented Programming Using Java 1.1 (Ventana) and The Visual Basic Programmer's Guide to Java (Ventana). 0201702657AB05132002


Best Sellers


Product Details
  • ISBN-13: 9780201702651
  • Publisher: Pearson Education (US)
  • Publisher Imprint: Addison Wesley
  • Height: 233 mm
  • No of Pages: 512
  • Sub Title: VB 6.0 and VB.NET
  • Width: 186 mm
  • ISBN-10: 0201702657
  • Publisher Date: 11 Dec 2001
  • Binding: SA
  • Language: English
  • Spine Width: 23 mm
  • Weight: 780 gr


Similar Products

Add Photo
Add Photo

Customer Reviews

REVIEWS      0     
Click Here To Be The First to Review this Product
Visual Basic Design Patterns: VB 6.0 and VB.NET
Pearson Education (US) -
Visual Basic Design Patterns: VB 6.0 and VB.NET
Writing guidlines
We want to publish your review, so please:
  • keep your review on the product. Review's that defame author's character will be rejected.
  • Keep your review focused on the product.
  • Avoid writing about customer service. contact us instead if you have issue requiring immediate attention.
  • Refrain from mentioning competitors or the specific price you paid for the product.
  • Do not include any personally identifiable information, such as full names.

Visual Basic Design Patterns: VB 6.0 and VB.NET

Required fields are marked with *

Review Title*
Review
    Add Photo Add up to 6 photos
    Would you recommend this product to a friend?
    Tag this Book Read more
    Does your review contain spoilers?
    What type of reader best describes you?
    I agree to the terms & conditions
    You may receive emails regarding this submission. Any emails will include the ability to opt-out of future communications.

    CUSTOMER RATINGS AND REVIEWS AND QUESTIONS AND ANSWERS TERMS OF USE

    These Terms of Use govern your conduct associated with the Customer Ratings and Reviews and/or Questions and Answers service offered by Bookswagon (the "CRR Service").


    By submitting any content to Bookswagon, you guarantee that:
    • You are the sole author and owner of the intellectual property rights in the content;
    • All "moral rights" that you may have in such content have been voluntarily waived by you;
    • All content that you post is accurate;
    • You are at least 13 years old;
    • Use of the content you supply does not violate these Terms of Use and will not cause injury to any person or entity.
    You further agree that you may not submit any content:
    • That is known by you to be false, inaccurate or misleading;
    • That infringes any third party's copyright, patent, trademark, trade secret or other proprietary rights or rights of publicity or privacy;
    • That violates any law, statute, ordinance or regulation (including, but not limited to, those governing, consumer protection, unfair competition, anti-discrimination or false advertising);
    • That is, or may reasonably be considered to be, defamatory, libelous, hateful, racially or religiously biased or offensive, unlawfully threatening or unlawfully harassing to any individual, partnership or corporation;
    • For which you were compensated or granted any consideration by any unapproved third party;
    • That includes any information that references other websites, addresses, email addresses, contact information or phone numbers;
    • That contains any computer viruses, worms or other potentially damaging computer programs or files.
    You agree to indemnify and hold Bookswagon (and its officers, directors, agents, subsidiaries, joint ventures, employees and third-party service providers, including but not limited to Bazaarvoice, Inc.), harmless from all claims, demands, and damages (actual and consequential) of every kind and nature, known and unknown including reasonable attorneys' fees, arising out of a breach of your representations and warranties set forth above, or your violation of any law or the rights of a third party.


    For any content that you submit, you grant Bookswagon a perpetual, irrevocable, royalty-free, transferable right and license to use, copy, modify, delete in its entirety, adapt, publish, translate, create derivative works from and/or sell, transfer, and/or distribute such content and/or incorporate such content into any form, medium or technology throughout the world without compensation to you. Additionally,  Bookswagon may transfer or share any personal information that you submit with its third-party service providers, including but not limited to Bazaarvoice, Inc. in accordance with  Privacy Policy


    All content that you submit may be used at Bookswagon's sole discretion. Bookswagon reserves the right to change, condense, withhold publication, remove or delete any content on Bookswagon's website that Bookswagon deems, in its sole discretion, to violate the content guidelines or any other provision of these Terms of Use.  Bookswagon does not guarantee that you will have any recourse through Bookswagon to edit or delete any content you have submitted. Ratings and written comments are generally posted within two to four business days. However, Bookswagon reserves the right to remove or to refuse to post any submission to the extent authorized by law. You acknowledge that you, not Bookswagon, are responsible for the contents of your submission. None of the content that you submit shall be subject to any obligation of confidence on the part of Bookswagon, its agents, subsidiaries, affiliates, partners or third party service providers (including but not limited to Bazaarvoice, Inc.)and their respective directors, officers and employees.

    Accept

    Fresh on the Shelf


    Inspired by your browsing history


    Your review has been submitted!

    You've already reviewed this product!