Pk vb beginning, Thesis of Advanced Computer Programming

VB.Net for begginners

Typology: Thesis

2015/2016

Uploaded on 08/14/2016

reymund_maltu_edra
reymund_maltu_edra 🇵🇭

1 document

1 / 724

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Willis,
Newsome
$44.99 USA
$53.99 CAN
Programming Languages / Visual Basic
A thorough introduction to
the basics of Visual Basic 2010
wrox.com
Programmer
Forums
Join our Programmer to
Programmer forums to ask
and answer programming
questions about this book,
join discussions on the
hottest topics in the industry,
and connect with fellow
programmers from around
the world.
Code Downloads
Take advantage of free code
samples from this book, as
well as code samples from
hundreds of other books, all
ready to use.
Read More
Find articles, ebooks, sample
chapters, and tables of contents
for hundreds of books, and
more reference resources on
programming topics that matter
to you.
Synonymous with writing code in Visual Studio 2010, Visual Basic
is an incredibly popular programming language. Its speed and ease
of use make it a frequent first choice for new programmers, as well
as a heavily favored choice for the more experienced set eager to
learn Visual Basic’s latest iteration. This beginning guide provides
you with a solid foundation, unlocking the power and possibilities
of Visual Basic 2010 and giving detailed steps for quickly and easily
writing useful programs.
Beginning Microsoft Visual Basic 2010:
Details the process for creating Windows Forms applications, WPF
Windows applications, web applications, WPF browser applications,
mobile device applications, and Web Services
Discusses application debugging, error handling, and dealing with
unexpected events
Addresses object-oriented programming and how to use it in your
applications
Reviews dynamic data web sites and ASP.NET
Introduces XML and shows how it can be used to integrate your
applications with others
Explains deploying applications using ClickOnce technology
• Covers Access®
, SQL Server®
, and ADO.NET
Thearon Willis is an author or coauthor of nearly a dozen books and a senior
consultant who develops intranet applications using ASP.NET, DHTML, XML,
JavaScript, VBScript, VB COM components, and SQL Server.
Bryan Newsome is an author or coauthor of many books and works for a Microsoft
Partner in Charlotte specializing in Custom Software Solutions. He provides clients
with solutions and mentoring on leading-edge Microsoft technologies.
Wrox Beginning guides are crafted to make learning programming languages
and technologies easier than you think, providing a structured, tutorial format
that will guide you through all the techniques involved.
Wrox Programmer to Programmer™
Join the discussion @ p2p.wrox.com
Beginning
Visual Basic®
2010
Microsoft®
Visual Basic® 2010
Microsoft®
Thearon Willis, Bryan Newsome
Beginning
www.it-ebooks.info
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e
pf2f
pf30
pf31
pf32
pf33
pf34
pf35
pf36
pf37
pf38
pf39
pf3a
pf3b
pf3c
pf3d
pf3e
pf3f
pf40
pf41
pf42
pf43
pf44
pf45
pf46
pf47
pf48
pf49
pf4a
pf4b
pf4c
pf4d
pf4e
pf4f
pf50
pf51
pf52
pf53
pf54
pf55
pf56
pf57
pf58
pf59
pf5a
pf5b
pf5c
pf5d
pf5e
pf5f
pf60
pf61
pf62
pf63
pf64

Partial preview of the text

Download Pk vb beginning and more Thesis Advanced Computer Programming in PDF only on Docsity!

Willis, Newsome

$44.99 USA

Programming Languages / Visual Basic $53.99 CAN

A thorough introduction to

the basics of Visual Basic 2010

wrox.com

Programmer

Forums

Join our Programmer to Programmer forums to ask and answer programming questions about this book, join discussions on the hottest topics in the industry, and connect with fellow programmers from around the world.

Code Downloads

Take advantage of free code samples from this book, as well as code samples from hundreds of other books, all ready to use.

Read More

Find articles, ebooks, sample chapters, and tables of contents for hundreds of books, and more reference resources on programming topics that matter to you.

Synonymous with writing code in Visual Studio 2010, Visual Basic

is an incredibly popular programming language. Its speed and ease

of use make it a frequent first choice for new programmers, as well

as a heavily favored choice for the more experienced set eager to

learn Visual Basic’s latest iteration. This beginning guide provides

you with a solid foundation, unlocking the power and possibilities

of Visual Basic 2010 and giving detailed steps for quickly and easily

writing useful programs.

Beginning Microsoft Visual Basic 2010:

  • Details the process for creating Windows Forms applications, WPF

Windows applications, web applications, WPF browser applications,

mobile device applications, and Web Services

  • Discusses application debugging, error handling, and dealing with

unexpected events

  • Addresses object-oriented programming and how to use it in your

applications

  • Reviews dynamic data web sites and ASP.NET
  • Introduces XML and shows how it can be used to integrate your

applications with others

  • Explains deploying applications using ClickOnce technology
  • Covers Access®, SQL Server®, and ADO.NET

Thearon Willis is an author or coauthor of nearly a dozen books and a senior consultant who develops intranet applications using ASP.NET, DHTML, XML, JavaScript, VBScript, VB COM components, and SQL Server.

Bryan Newsome is an author or coauthor of many books and works for a Microsoft Partner in Charlotte specializing in Custom Software Solutions. He provides clients with solutions and mentoring on leading-edge Microsoft technologies.

Wrox Beginning guides are crafted to make learning programming languages and technologies easier than you think, providing a structured, tutorial format that will guide you through all the techniques involved.

Join the discussion @ p2p.wrox.com Wrox Programmer to Programmer™

Beginning

Visual Basic

Microsoft

Visual Basic

®

Microsoft

Thearon Willis, Bryan Newsome

Beginning

Get more out of

wrox.com

Programmer to Programmer ™

Interact Take an active role online by participating in our P2P forums @ p2p.wrox.com

Wrox Online Library Hundreds of our books are available online through Books24x7.com

Wrox Blox Download short informational pieces and code to keep you up to date and out of trouble!

Join the Community Sign up for our free monthly newsletter at newsletter.wrox.com

Browse Ready for more Wrox? We have books and e-books available on .NET, SQL Server, Java, XML, Visual Basic, C#/ C++, and much more!

Contact Us.

We always like to get feedback from our readers. Have a book idea?

Need community support? Let us know by e-mailing [email protected]

Related Wrox Books

Beginning ASP.NET 4

ISBN: 978-0-470-50221- Microsoft MVP Imar Spaanjaars walks you through ASP.NET, Microsoft’s technology for building dynamically generated web pages from database content. You’ll discover many improvements that ASP.NET 4 offers over the previous version, such as Ajax improvements, jQuery support, and more. With this book you’ll gradually build a web site example that takes you through the processes of building basic ASP.NET web pages, adding features with pre-built server controls, designing consistent pages, displaying data, and more.

Beginning Microsoft Visual C# 2010

ISBN: 978-0-470-50226- Beginning Microsoft Visual C# 2010 starts with the basics and brings you thoroughly up to speed. You’ll first cover the fundamentals such as variables, flow control, and object-oriented programming and gradually build your skills for web and Windows programming, Windows forms, and data access.

Professional Visual Basic 2010 and .NET 4

ISBN: 978-0-470-50224- If you’ve already covered the basics and want to dive deep into VB and .NET topics that professional programmers use most, this is your book. You’ll find a quick review of introductory topics before the author team of experts moves into such topics as data access with ADO.NET, Language Integrated Query (LINQ), security, ASP.NET web programming with Visual Basic, Windows workflow, threading, and more. You’ll explore all the new features of Visual Basic 2010 as well as all the essential functions that you need, including .NET features such as LINQ to SQL, LINQ to XML, WCF, and more. Plus, you’ll examine exception handling and debugging, Visual Studio features, and ASP.NET web programming.

Visual Basic 2010 Programmer’s Reference

ISBN: 978-0-470-49983- Visual Basic expert Rod Stephens shows you how to leverage the latest features of VB 2010. This book covers the newest features of Visual Basic 2010, such as array literals and initializers, collection initializers, implicit line continuation, Lambda expressions, and more, and features extensively revised and tested code to ensure compliance with the latest release.

Visual Studio 2010 and .NET 4 Six-in-One

ISBN: 978-0-470-49948- This comprehensive resource offers all you need to know to get productive with .NET 4. Experienced authors and .NET gurus review all the important new features of .NET 4, including .NET charting and ASP.NET charting, ASP.NET dynamic data and jQuery, and more.

BEGINNING

Microsoft

Visual Basic 2010

BEGINNING

Microsoft

Visual Basic 2010

Thearon Willis

Bryan Newsome

Wiley Publishing, Inc.

Beginning Microsoft ®^ Visual Basic 2010

Published by Wiley Publishing, Inc. 10475 Crosspoint Boulevard Indianapolis, IN 46256 www.wiley.com

Copyright © 2010 by Wiley Publishing, Inc., Indianapolis, Indiana Published simultaneously in Canada

ISBN: 978-0-470-50222-

Manufactured in the United States of America

10 9 8 7 6 5 4 3 2 1

No part of this publication may be reproduced, stored in a retrieval system or transmitted in any form or by any means, electronic, mechanical, photocopying, recording, scanning or otherwise, except as permitted under Sections 107 or 108 of the 1976 United States Copyright Act, without either the prior written permission of the Publisher, or authorization through payment of the appropriate per-copy fee to the Copyright Clearance Center, 222 Rosewood Drive, Danvers, MA 01923, (978) 750-8400, fax (978) 646-8600. Requests to the Publisher for permission should be addressed to the Permissions Department, John Wiley & Sons, Inc., 111 River Street, Hoboken, NJ 07030, (201) 748-6011, fax (201) 748- 6008, or online at http://www.wiley.com/go/permissions.

Limit of Liability/Disclaimer of Warranty: The publisher and the author make no representations or warranties with respect to the accuracy or completeness of the contents of this work and specifically disclaim all warranties, including without limitation warranties of fitness for a particular purpose. No warranty may be created or extended by sales or pro- motional materials. The advice and strategies contained herein may not be suitable for every situation. This work is sold with the understanding that the publisher is not engaged in rendering legal, accounting, or other professional services. If professional assistance is required, the services of a competent professional person should be sought. Neither the pub- lisher nor the author shall be liable for damages arising herefrom. The fact that an organization or Web site is referred to in this work as a citation and/or a potential source of further information does not mean that the author or the publisher endorses the information the organization or Web site may provide or recommendations it may make. Further, readers should be aware that Internet Web sites listed in this work may have changed or disappeared between when this work was written and when it is read.

For general information on our other products and services please contact our Customer Care Department within the United States at (877) 762-2974, outside the United States at (317) 572-3993 or fax (317) 572-4002.

Wiley also publishes its books in a variety of electronic formats. Some content that appears in print may not be available in electronic books.

Library of Congress Control Number: 2009943647

Trademarks: Wiley, the Wiley logo, Wrox, the Wrox logo, Wrox Programmer to Programmer, and related trade dress are trademarks or registered trademarks of John Wiley & Sons, Inc. and/or its affiliates, in the United States and other countries, and may not be used without written permission. Microsoft and Visual Basic are registered trademarks of Microsoft Corporation in the United States and/or other countries. All other trademarks are the property of their respective owners. Wiley Publishing, Inc., is not associated with any product or vendor mentioned in this book.

ABOUT THE AUTHORS

THEARON WILLIS currently works as a senior developer and develops Windows applica- tions and add-ins for Microsoft Office products using Microsoft Visual Basic .NET. Over the years, Thearon has worked on a variety of systems from mainframe to client-server development.

BRYAN NEWSOME leads a team of lead developers specializing in Microsoft solutions. Since starting his career building Visual Basic 5 solutions, he has embraced each new version Visual Basic and now creates all new solutions leveraging the .NET platform and VB.NET. He provides clients with solutions and mentoring on leading edge Microsoft technologies. For VB.NET, Bryan is a Microsoft Certified Application Developer.

ABOUT THE TECHNICAL EDITOR

DAMIEN FOGGON is a developer, writer, and technical reviewer in cutting-edge technologies and has contributed to more than 50 books on .NET, C#, Visual Basic, and ASP.NET. He is a multiple MCPD in .NET 2.0 and .NET 3.5 and can be found online at http://blog.littlepond.co.uk.

ACKNOWLEDGMENTS

FIRST AND FOREMOST I WANT to thank God for giving me the wisdom and knowledge to share with others and for the many talents that he has blessed me with. I would also like to thank all the people at Wiley who work so hard to bring this book to market. I’d be remiss if I didn’t thank my good friend and co-author Bryan Newsome; thanks for your hard work and dedication.

— Thearon

THANKS TO EVERYONE AT WILEY who worked so hard to get this book on the shelves. Special thanks to Maureen Spears who went above and beyond to help me finish my review on schedule. Of course, thanks goes out to Thearon Willis for completing one more edition.

— Bryan

CONTENTS

  • VISUAL BASIC ®
  • CHAPTER 1 Welcome to Visual Basic INTRODUCTION xxix
  • CHAPTER 2 The Microsoft.NET Framework
  • CHAPTER 3 Writing Software
  • CHAPTER 4 Controlling the Flow
  • CHAPTER 5 Working with Data Structures
  • CHAPTER 6 Extensible Application Markup Language (XAML)
  • CHAPTER 7 Building Windows Applications
  • CHAPTER 8 Displaying Dialog Boxes
  • CHAPTER 9 Creating Menus
  • CHAPTER 10 Debugging and Error Handling
  • CHAPTER 11 Building Objects
  • CHAPTER 12 Advanced Object-Oriented Techniques
  • CHAPTER 13 Building Class Libraries
  • CHAPTER 14 Creating Windows Forms User Controls
  • CHAPTER 15 Accessing Databases
  • CHAPTER 16 Database Programming with SQL Server and ADO.NET
  • CHAPTER 17 Dynamic Data Web Site
  • CHAPTER 18 ASP.NET
    • CHAPTER 19 Visual Basic 2010 and XML
    • CHAPTER 20 Deploying Your Application
    • APPENDIX A Exercise Solutions
    • APPENDIX B Where to Now?
  • INDEX
  • CHAPTER 1: WELCOME TO VISUAL BASIC INTRODUCTION xxix
    • Event-Driven Programming
    • Installing Visual Basic
    • The Visual Studio 2010 IDE
      • The Profile Setup Page
      • The Menu
      • The Toolbars
    • Creating a Simple Application - Windows in the Visual Studio 2010 IDE
      • The Toolbox
      • Modified Hungarian Notation
      • The Code Editor
    • Using the Help System
    • Summary
  • CHAPTER 2: THE MICROSOFT .NET FRAMEWORK
    • Microsoft’s Reliance on Windows
      • MSN 1.0
      • The .NET Vision
      • This Sounds Like Java
      • Where Now?
    • Writing Software for Windows
      • The .NET Framework Classes
      • Executing Code
    • Common Language Runtime
      • Code Loading and Execution
      • Application Isolation
      • Security
      • Interoperability
      • Exception Handling
    • The Common Type System and Common Language Specification
    • Summary
  • CHAPTER 3: WRITING SOFTWARE CONTENTS
    • Information and Data
      • Algorithms
      • What Is a Programming Language?
    • Working with Variables
    • Comments and Whitespace
      • Comments
      • Whitespace
    • Data Types
      • Working with Numbers
      • Common Integer Math Operations
      • Integer Math Shorthand
        • The Problem with Integer Math
      • Floating-Point Math
        • Other States
        • Single-Precision Floating-Point Numbers
      • Working with Strings
        • Concatenation
        • Using the Concatenation Operator Inline
        • More String Operations
        • Substrings
        • Formatting Strings
        • Localized Formatting
        • Replacing Substrings
      • Using Dates
        • Formatting Date Strings
        • Extracting Date Properties
        • Date Constants
        • Defining Date Literals
        • Manipulating Dates
      • Boolean
    • Storing Variables
      • Binary
      • Bits and Bytes
      • Representing Values
      • Converting Values
    • Methods
      • Why Use Methods?
      • Methods You’ve Already Seen