Microsoft Visual C# 2005 Express Edition: Build a Program Now! (46 page)

Read Microsoft Visual C# 2005 Express Edition: Build a Program Now! Online

Authors: Patrice Pelland

Tags: #General, #Computers, #C♯ (Computer program language), #Programming Languages, #C#, #Microsoft .NET Framework, #Computer Books: Languages, #Computer Graphics, #Application software, #C# (Computer program language), #Programming, #Microsoft Visual C# .NET, #Microsoft Visual C♯ .NET, #Electronic books, #Game Programming & Design, #Computing: Professional & Programming, #C (Computer program language), #Computers - Languages, #Programming Languages - C#, #Programming & scripting languages: general

BOOK: Microsoft Visual C# 2005 Express Edition: Build a Program Now!
5.74Mb size Format: txt, pdf, ePub

is loaded

instance
A manifestation of a class

SQL Server 2005 Express Edition
A version of SQL Server

J

2005 designed to help developers build applications by pro
Jscript
An Active Scripting Engine; the Microsoft version of viding a powerful database that is also free and easy to use

JavaScript

string
A sequence of characters or words

M

T

method
Procedure or function; a piece of code associated

toolbar
A row or section of clickable icons that activate difwith a class or object ferent functions of a program

Microsoft .NET
A software development platform developed by Microsoft U

user interface (UI)
The means by which users interact with

O

a computer program

override
A class or object may replace a behavior it has

inherited

V

variable
A structure that holds information temporarily for

P

use later in a program

Perl
A programming language that supports both proce
Visual Basic 2005 Express Edition
A streamlined version dural and object-oriented programming

of Visual Basic that provides hobbyists, students, and novices

programming language
A method for providing instrucan easy-to-use Windows programming and development tions to a computer

tool

property
A quality of an object

W

Python
An object-oriented computer programming lan
Windows application
Computer software that provides guage

various functions for the user, such as word processing, database, or spreadsheet R

reference
The address of the memory space used to store

information about a variable

S

Screen Tip
Short, context-sensitive information provided at

the point where the cursor is held

208

Microsoft Visual Basic 2005 Express Edition: Build a Program Now!

Z01622299.indd 208

Z01622299.indd 208

10/24/05 6:25:12 PM

10/24/05 6:25:12 PM

Index

A

Browser

Comments, 76–77

Data Source Configuration Wizard,

add status bar to, 98–99

Common controls, 50, 71–74

150–151

About box, 89–90, 90–92

add tool strip to, 103–104

Common Language Runtime (CLR), 3–4,

Data Sources window, 150, 152–153

About Display box, 176–177

configure, to navigate, 107–108

120

Data visualizers, 121

AcceptButton, 93, 180

create, 48–52

Community access and start page, 13

DBMS.
See
Database Management System

AcceptReturn, 179

Browser form icon, modify, 108

Community Technology Preview (CTP), 17

Debuggers, 3

Active column, 133

Built-in starter kit, 11

Compilers, 3

Debugger visualizers, 13

Add New Item dialog, 82

Button, 53, 72

Component tray, 155–156

Debugging, 39–40, 112–126

Add Table dialog box, 159–160

Console application, 10, 25–27

Design layout, defined, 47

ADO.NET, 148–149

building, 31–32

DestroyIcon method, 194

American Standard Code for Information

C

coding, 37–38

Dialog boxes, 89–95.
See also entries for

Interchange (ASCII), 27

C#

Context menu, 29, 173, 180

individual dialog boxes

Anchor, 93

defined, 4–9

Continue, 114–115

DialogResult, 93

Antispyware application, 16

example in, 5

ControlBox, 179

Display() method, 7

Antivirus, 16

object-oriented programming (OOP), 4

Controls, 71–74, 83–84

DisplayStyle, 106

Application

See also
Visual C# 2005 Express Edition

add new, to navigation tool strip, 106

Divide method, 115, 117, 122

attach forms to, 177–178

C++, 4

populate, with information, 100–101

DLL. See Dynamic Link Library

stop, 173–176

Call Stack, 116

rearrange order of, 98

Document Outline view, 97

view title, 85–89

Camel casing, 154

snap and align, using snap lines, 58–59

Domain tables, databind with, 157

view version, 85–89

CancelButton, 93, 180

Copyright properties, view, 85–89

Dotted grip, 98

See also
Weather Tracker application

Casing, 154

CreateIcon method, 192

DoubleBuffered, 169

Argument, 52

CheckBox, 73

CTP.
See
Community Technology Preview

Dynamic Link Library (DLL), 112–114

Array visualizer, 121

Class, 52

Customer Information Form, 75

ASCII.
See
American Standard Code for

Class libraries, 10

Custom user setting, 46

Information Interchange (ASCII)

Click action, wire to button, 53

E

ASCII characters, 27

ClickOnce, 204–205

Edit, 114–115

ASP.NET, 3

Click-once deployment, 12

D

Edit and Continue feature, 12–13, 118, 122

Assembly Information dialog box, 86, 91

Close Button, 27

Database, 128–136

Encapsulation, 52

AutoHide, 58

CLR.
See
Common Language Runtime (CLR)

contents of, 128

Error dialog box, 147

Auto-using statements, 66

Code

create tables in, 139–140

Error icon, 199

console application, 37–38

defined, 128

Error List, 38, 116, 198

B

getting started writing, 27–31

modify, 156

Error provider control, 199, 203

learning to read, 38

See also
Table

Event

BackColor, 83, 179–180

samples of, 31

Database Connections, 139

what happens when triggered, 74–78

Background, 185–190

using comments in, 76–77

Database Explorer, 139–140

wire source code to, 76–78

Background code, add supporting,

Code snippets

Database Filename, 139

Exception Assistant, 121

190–192

defined, 11

Database Management System, 128

Exception dialog box, 121

BackgroundImage, 83, 177

how to invoke, 64–65

Databinding, 148–149, 157

Exception-handling mechanism, 123

BackgroundImageLayout, 83, 177

as IntelliSense feature, 63

Data-enabled applications, 11

Exceptions, 121–125

BackgroundWorker class, 186–190

using, 64–65

Data integrity, 129–131

Execution engine, 3–4

Binding navigator, 156

where to find more information on, 78

Data members, 5, 52

Express Online Known Issues, 16

Binding source, 155–156, 190

Codezone Community, 36

Data normalization, 129–131

Express Online Readme, 16

Black Box testing, 95

Colon punctuation symbol (:), 7

Dataset, create, 150–156

Extensible Markup Language (XML), 13, 20

Block, 119

Column, 128–129

Data source, create, for main form control,

ExtractTemperature method, 191

Breakpoints, 114–115, 118–119

ComboBox, 73

168–169

209

Z02622299.indd 209

10/25/05 2:03:18 PM

F

Immutable, 133

Microsoft Office Excel, 123

Navigation buttons, modify behavior of,

Inherits, 6

Microsoft Office Outlook, 96

105–106

FCL.
See
Framework Class Libraries (FCL)

Instance, 52

Microsoft SQL Server 2005 Express Edition,

Navigation tool strip, add new controls

FK.
See
Foreign key (FK)

Integrated Development Environment (IDE)

20–21

to, 106

FlatStyle, 180

components of, 28–31

Microsoft Transact-SQL (T-SQL), 136, 148

.NET Framework

Font, 83, 179

customizing, 39–40

Microsoft Update, 16, 22

classes and wizards available in, 181,

ForeColor, 83, 179

defined, 25

Microsoft Virtual PC 2004, 17

186

Foreign key (FK), 132, 134–135

IntelliSense, 11, 59–66, 95, 187

Microsoft Visual Studio 2005 Express

ClickOnce, 204

Foreign Key Relationship dialog box, 142

auto-using statements, 66

Edition

components of, 3

Form

code snippets, 63–64, 78

add Web services to project using,

defined, 2–4

add weather information to, 183–185

and Ctrl+Spacebar, 60

181–183

derived from Object class, 7

finish main, 195–197

and period/left parentheses, 60–61

applications to build with, 10

.NET Passport Sign-in, 2

hook up to context menu, 180

select from list of options in, 62

enter data in SQL Server tables using,

New Project dialog box, 31–32, 41

FormBorderStyle, 83, 93, 179

WriteLine method, 61

145–148

Normalization rules, 129

Form control, 12, 169

IntelliSense Filtering, pre-selecting “most

getting help, 33–37

Notification area, 169–173

Form properties, 49

recently used,” 62

side-by-side installation, 16

Notification icon code, create and destroy,

Fortran, 4

Internet.
See
Web services

use of Pascal or Camel casing, 154

192–194

Framework.
See
.NET Framework

Internet Information Service (IIS), 181

Microsoft Visual Studio 2005 Express

NotifyIcon, 169–173

Framework Class Libraries (FCL), 3

Invalid Zip code, 203

Edition documentation, 33–37

Null, 132

Items Collection Editor, 172

Microsoft Windows AntiSpyware Beta, 16

NumericalUpDown, 74

G-H

J-L

Microsoft Windows application, 26–27

Getting Started, 28–29

Minimize box, 93, 179

Java, 4

O

GetWeatherInfo2 method, 187, 190

Minimize Button, 27

Label, 72

Object class, 7

Google, 181

Modal Form, 92

Lisp, 4

Object-oriented programming (OOP)

GotDotNet Workspaces, 206

Modify Connection dialog box, 13

ListBox, 73

concepts in, 7–9

Help. 33-37

“Most recently used,” 62

Local Help, 35

defined, 4

Help menu, link About box to, 90–92

Most Valuable Professionals, 37

Locals, 114–117

more information about, 54

Hyperlink, 29–30

MSDN.
See
Microsoft Developer Network

terminology for, 67

(MSDN)

Online Help Settings choices, 34

I

M

MSDN Express Library, 20–21

OOP.
See
Object-oriented programming

Main form

MSDN Feeds, 30

IBM SQL PL, 136, 148

(OOP)

create data source for, 168–169

MSDN Help page, 17

Icon(s)

Options dialog box, 30, 179–180, 199

finish, 195–197

MSDN Library, 35.
See also
Help

alternative way to complete action, 29

Oracle PL/SQL, 136

view of, in Weather Tracker application,

MSDN Online, 36–37

change main form, 85

Out-of-range Zip code, 203

168

MSDN RSS (Microsoft Developer Network

for entering data in table, 145

Output, 116

MainFormToolStripContainer, 98

Really Simple Syndication), 30

error, 199

Override, 6–7

Main Toolbar, 28, 30

MSDN Visual C# RSS Feed.
See
Microsoft

modify browser form, 108

ManipulateStrings method, 120–122

Developer Network Really Simple

NotifyIcon, 168–173

MaximizeBox, 93, 179

Syndication (MSDN Visual C# RSS

P

pencil, 145

Maximize Button, 27

Feed)

Pascal, 4, 154

personalize application with, 102–103

.mdf file extension, 137

MSN, 181

Password, 187

ShowIcon, 93

Menu Bar, 28–30

Multithreaded programming with call

Pencil icon, 145

weather, 197–198

Menu strip, add dotted grip to, 98

back, 186

% symbol, 160

Other books

Eternal Test of Time by Vistica, Sarah
The Alpine Xanadu by Daheim, Mary
For Your Love by Caine, Candy
Marked by Snyder, Jennifer
Safety by Viola Rivard
Angelic Sight by Jana Downs
The Long Way To Reno by Mix, Michelle
Shopaholic to the Stars by Sophie Kinsella