Professional Visual Basic 2010 and .NET 4 Visual Basic 2010 and .NET 4 Professional Visual Basic 2010 and .NET Four Visual Basic 2010 and .NET Four ( PDFDrive ).pdf
(
23039 KB
)
Pobierz
Professional
Visual Basic® 2010 and .neT 4
Bill Sheldon
Billy Hollis
Kent Sharkey
Jonathan Marbutt
Rob Windsor
Gastón C. Hillar
Professional Visual Basic® 2010 and .neT 4
Published by
Wiley Publishing, Inc.
10475 Crosspoint Boulevard
Indianapolis, IN 46256
www.wiley.com
Copyright © 2010 by Wiley Publishing, Inc., Indianapolis, Indiana
Published by Wiley Publishing, Inc., Indianapolis, Indiana
Published simultaneously in Canada
ISBN: 978-0-470-50224-2
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 promotional
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 publisher 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:
2010921246
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. Visual Basic is a registered trademark 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.
conTenTs
IntroductIon
xxxv
ParT i: language consTrucTs and enVironmenT
chaPTer 1: Visual sTudio 2010
3
Visual studio 2010: express through Ultimate
Visual Basic Keywords and syntax
Console Applications
Creating a Project from a Project Template
The Solution Explorer
Project Properties
Assembly Information Screen
Compiler Settings
Debug Properties
References
Resources
Settings
Other Project Property Tabs
4
7
10
11
14
15
16
17
21
22
24
25
28
Project ProVB_Vs2010
Form Properties Set in Code
Additional Components for Visual Studio
28
31
39
enhancing a sample application
Customizing the Code
Building Applications
Reusing Your First Windows Form
40
41
45
52
Useful features of Visual studio 2010
Build Configurations
The Task List
The Command Window
Server Explorer
Recording and Using Macros in Visual Studio 2010
Class Diagrams
Application Lifecycle Management
Performance Tools
54
54
56
57
57
58
60
61
64
summary
66
conTenTs
chaPTer 2: oBJecTs and Visual Basic
67
object-oriented Terminology
Objects, Classes, and Instances
Composition of an Object
System .Object
68
68
69
72
Working With Visual Basic Types
Value and Reference Types
Primitive Types
72
73
75
Commands: Conditional
If Then
Comparison Operators
Select Case
76
77
77
79
Value Types (structures)
Boolean
Integer Types
Unsigned Types
Decimal Types
Char and Byte
DateTime
79
80
81
82
82
85
85
reference Types (Classes)
The Object Class
The String Class
XML Literals
The DBNull Class and IsDBNull Function
86
86
87
91
92
Parameter Passing
ParamArray
93
94
Variable scope
Working with objects
Objects Declaration and Instantiation
Object References
Dereferencing Objects
Early Binding versus Late Binding
94
95
95
96
97
97
Data Type Conversions
Performing Explicit Conversions
98
99
Creating Classes
Basic Classes
Handling Events
Handling Multiple Events
103
103
113
113
xvi
ConTenTs
The WithEvents Keyword
Raising Events
Declaring and Raising Custom Events
Receiving Events with WithEvents
Receiving Events with AddHandler
Constructor Methods
Termination and Cleanup
114
114
115
116
117
119
119
advanced Concepts
Overloading Methods
Overloading Constructor Methods
Shared Methods, Variables, and Events
Operator Overloading
Delegates
Classes versus Components
Lambdas
120
121
123
124
128
130
134
135
summary
chaPTer 3: cusTom oBJecTs
136
137
inheritance
Implementing Inheritance
Interacting with the Base Class, Your Class, and Your Object
Simple Constructors
Creating an Abstract Base Class
138
139
159
164
175
Multiple interfaces
Object Interfaces
Secondary Interfaces
177
177
178
abstraction
encapsulation
Polymorphism
Method Signatures
184
187
189
189
inheritance
When to Use Inheritance
How Deep to Go?
198
198
205
summary
chaPTer 4: The common language runTime
208
211
elements of a .neT application
Modules
Assemblies
Types
212
212
213
214
xvii
Plik z chomika:
pawlak_borowka
Inne pliki z tego folderu:
1_5_Bezpieczenstwo_kodu_VBA.mp4
(5532 KB)
22 Kwerendy SQL w MS Access.pdf
(769 KB)
30 makr - VBA - Excellent Work.pdf
(346 KB)
Acces-cwicz-przyklady_BOOK_ALL_CHAPTERS_03_01_2019-internet.pdf
(8981 KB)
Access 2007 PL Biblia Cała Scan.pdf
(40537 KB)
Inne foldery tego chomika:
ACCESS
DOS
EXE
SOFT
WINDOWS
Zgłoś jeśli
naruszono regulamin