C


Call Browser window, 50

calling functions, 245

camelCase naming conventions, 88

capitalization

camelCase, 88

menus, 109

case sensitivity (declaring variables), 152

Center in Form command (Format menu), 36

check marks (menus), 113–114

CheckBox control, 192

class library (.NET Framework), 14–15

Class View window, 50

classes

abstraction, 284

class library, 14–15

constants, 287–288

creating, 286–289

data types, 286–287

DateTime functions, 254–256

defined, 284

defining, 289

encapsulation, 284–285

enum, 287–288

event handling, 330

Graphics

CreateObjects function, 311–312

DrawString function, 317–318

functions, 311–313, 315–317

inheritance, 285

instantiating, 286

MessageBox (Show function), 78–84, 285

.NET Framework, 14–15, 254–257

objects relationship, 14, 283–284, 286

overview, 283–284

Pen functions, 313–314

Point, 327

polymorphism, 285

ref, 288–289

SoundPlayer, 319–320

System (Drawing function), 327

SystemSounds, 320–321

types, 286

value, 286–287

click events, 124–125

Click Race

code, 55–59

controls, 51, 53–55

creating, 51

design, 50–51

GUIs, 51–53

preview, 27–29

testing, 60

windows/forms, 51, 53–55

clicking (controls), 20–21

closing windows/forms, 31–32

CLR (Common Language Runtime), 14–16

code. See also Code Editor

applications, storing, 36–37

arrays

defined, 146,159

defining, 150–160

elements, 150–160

indexes, 159, 236

loops, 160

overview, 158–159

troubleshooting, 160

backslashes, 24

buttons (toolbars), 124–125

camelCase, 88

classes. See classes

Click Race, 55–59

color, 39

comments, 57, 143–145

compiling, 4, 15

constants

creating, 287–288

declaring, 147–148

defined, 145

overview, 146

controls. See controls

cursors, 37

customizing, 36

deleting, 56

Dice Poker, 225–239

functions. See functions

Guess a Number, 196–205

Hangman, 266–277

indentation, 39

IntelliSense, 40–42

Lottery Assistant, 132–140

menus, 109–110

namespaces, 80

naming conventions, 88

numbers, 132–136

OOP, 37–38

reserved words, 162–163

Rock, Paper and Scissors, 297–305

spacing, 39

Speed Typing, 91–99

storing, 36–37

Story of Mighty Molly, 169–175

strings, 132–136

Tic-Tac-Toe, 352–364

troubleshooting. See troubleshooting code

variables. See variables

VC++ Doodle, 326–333

windows/forms. See windows/forms

Code Editor. See also code

code, adding, 23

color, 39

cursors, 37

customizing, 36

indentation, 39

Members list, 37

OOP, 37–38

overview, 36–37

Scopes list, 37

size, 24

spacing, 39

windows/forms, selecting, 37

color

Code Editor, 39

menus, 137–138

COM components, 44

ComboBox control, 184–185

Command window, 50

commands

menus. See menus

toolbars, 33–34

comments, 57, 143–145

Common Language Runtime (CLR), 14–16

comparison operators, 189

compatibility

DirectX, 10

.NET Framework, 7–8, 12

Win32, 10

compiling, defined, 4, 15

Component Tray (controls), 48–49

components (.NET Framework), 14–16

conditional logic

if statements

ComboBox control, 184–185

ifelse if statements, 184–185

ifelse statements, 182–184

multiline, 182

nesting, 185–187

operators, 189

overview, 180–181

pseudo-code, 180–181

single-line, 181–182

String Collection Editor, 184–185

syntax, 181

operators, 189

overview, 177,179

switch statements, 187–188

conditions (loops), 212–213

Configuration Manager, 85

constants

creating, 287–288

declaring, 147–148

defined, 145

overview, 146

context menus, 118–120

continue statements (loops), 216–217

controls

adding, 20–21

alignment, 22

anchoring, 324

buttons

adding, 21

code, 124–125

dialog boxes, 80–81, 83–84

event handling, 124–125

size, 122

toolbars, 121–122, 124–125

ToolTips, 122

CheckBox, 192

clicking, 20–21

code

Joke Machine, 23–25

ComboBox

statements, 184–185

Component Tray, 48–49

creating

Click Race, 51

Dice Poker, 217–218

Guess a Number, 190–191

Hangman, 257–258

Joke Machine, 20–21

Lottery Assistant, 125–126

Rock, Paper and Scissors, 290–291

Speed Typing, 86

Story of Mighty Molly, 163–164

Tic-Tac-Toe, 346

VC++ Doodle, 322

event handling, 330

focus, 70–72, 93

GroupBox, 191–192

ImageList, 122–123, 220, 225

labels, 20

MenuStrip control. See menus

moving, 20–21

NotifyIcon, 76–78

organizing, 259

Panel, 259, 324

PictureBox, 220

graphics, 310–311

ProgressBar, 295

properties

Click Race, 53–55

Dice Poker, 221–225

Guess a Number, 193–196

Hangman, 260–266

Joke Machine, 21–22

Lottery Assistant, 127–131

overview, 45–48

Rock, Paper and Scissors, 293–297

Speed Typing, 87–90

Story of Mighty Molly, 165–169

Tic-Tac-Toe, 348–351

VC++ Doodle, 324–326

RadioButton, 192

size, 20–21

Status Strips, 72–76, 99

storing, 259

tabs, 70–72

text boxes, 21

Timer, 49

ToolBar. See toolbars

Toolbox

COM components, 44

grouping, 44

moving, 42

.NET Framework, 44

viewing/hiding, 42–44

ToolTips, 86, 89–90

windows/forms

alignment, 35–36

guides, 35–36

locking, 36

moving, 35–36

conventions (declaring variables), 152–153

Convert object (ToDateTime function), 255

coordinates

graphics, 310–317

storing, 327

Course Technology Web site, 225

crashes (troubleshooting), 134, 160

CreateObjects function (Graphics class), 311–312

creating. See also adding

classes, 286–289

constants, 287–288

controls

Click Race, 51

Dice Poker, 217–218

Guess a Number, 190–191

Hangman, 257–258

Joke Machine, 20–21

Lottery Assistant, 125–126

Rock, Paper and Scissors, 290–291

Speed Typing, 86

Story of Mighty Molly, 163–164

Tic-Tac-Toe, 346

VC++ Doodle, 322

data types, 286–287

functions, 244–250, 318

GUIs

Click Race, 51–53

Dice Poker, 219–220

Guess a Number, 190–193

Hangman, 259–260

Joke Machine, 20–21

Lottery Assistant, 126–127

Rock, Paper and Scissors, 290–292

Speed Typing, 87

Story of Mighty Molly, 164–165

Tic-Tac-Toe, 347–348

VC++ Doodle, 323–324

projects

Click Race, 51

Dice Poker, 217–219

Guess a Number, 190–191

Hangman, 257–259

Lottery Assistant, 125–126

Joke Machine, 16–20

Rock, Paper and Scissors, 290–291

Speed Typing, 85–86

Story of Mighty Molly, 163–164

Tic-Tac-Toe, 345–347

VC++ Doodle, 322–323

release versions, 84–85

runtime versions, 84–85

standalone versions, 84–85

windows/forms

Click Race, 51

Dice Poker, 217–218

Guess a Number, 190–191

Hangman, 257–258

Lottery Assistant, 125–126

Rock, Paper and Scissors, 290–291

Speed Typing, 86

Story of Mighty Molly, 163–164

Tic-Tac-Toe, 346

VC++ Doodle, 322

cursors (code), 37

customizing

code, 36

Code Editor, 36

functions (defining), 248–250

toolbars, 32, 34

windows/forms, 32




Microsoft Visual C++ 2005 Express Edition Programming for the Absolute Beginner 2006
Microsoft Visual C++ 2005 Express Edition Programming for the Absolute Beginner 2006
ISBN: 735615381
EAN: N/A
Year: 2005
Pages: 131

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net