Visual Basic.NET程序员查询辞典

Visual Basic.NET程序员查询辞典
作 者: Dan Rahmel 陈君
出版社: 中国铁道出版社
丛编项: 查询辞典丛书
版权说明: 本书为公共版权或经版权方授权,请支持正版图书
标 签: VB.NET
ISBN 出版时间 包装 开本 页数 字数
未知 暂无 暂无 未知 0 暂无

作者简介

  DanRahmel是一位Windows程序员,具有14年的设计和实现信息系统以及部署中等规模的客户/服务器解决方案的实践经验,熟练掌握VisualBasic、ASP、C++SQLServer。他曾经编写过大量的计算机书,包括VisualBasicProgrammersReference、BuildingWebDatabaseApplicationwithVisualStudio、TeachYourselfDatabaseProgrammingin24Hours和DevelopingClient-ServerApplicationswithVisualBasic。他还曾经为DBMS、InternetAdvisor和AmericanProgrammer杂志撰稿。

内容简介

欢迎使用本书的新版本。由于本书的内容将在很长一段时期内有效;所以,编写本书使我感到非常荣幸。几年前,当Osborne的工作人员最初与我联系编写本书第一版时,我还怀有疑问:在拥有各种各样的在线帮助(包括VisualBasic在内)时,用户还需要使用编程辞典吗?我们共同探讨,决定在本书中补充现有的VisualBasic信息,使之物有所值。在这本篇幅不多但容量适宜的书中,包含了代码示例、对象图、操作说明实例、键码表和交叉引用等方面的内容,其价值显而易见。近些年来,VisualBasic系统变得更加复杂,Osborne的工作人员和我力图使这本参考指南的内容最新,并且发挥较大的作用。本书面向的对象VisualBasic.Net展现了一个全新的世界,我希望,本书能够帮助读者逐渐开始使用新的VisualBasic.Net系统。我还编写了一部姐妹卷,.NETProgrammer'sReference(ISBN0-07-219466-9),介绍了.NETFramework中类库的参考信息。如果读者感到这本书很有用,也许会发现,.NETPorgrammer'sReference在编写大型.NETFramework程序时会有所帮助。本书介绍了VisualBasic/VBA/VBScript系列产品的参考信息。本书假定读者有一定的编程经验,但编程新手也会发现,本书非常实用。在编写过程中,尽量避免了大量的交叉引用。如何使用本书在工程编程的过程中,可以将本书作为方便的参考指南。第6章中按字母顺序列出了VisualBasic.NET中的所有函数和语句,以方便读者快速查询。读者只要知道功能的基本类型,便可以查找已知的函数,然后查看“参见”部分,或者借助于文中提到的其他帮助手段找到准确的主题。使用过早期VisualBasic版本的读者,请先阅读第1章,其中解释了VisualBasic新的.NET版本中的诸多变化,包括在编程系统中出现的变化,而在系统文档的What'sNew部分中,并没有列出这些内容。本书的特点及工具本书的一大特色是每个参考命令都有代码示例,包括Immediate窗口示例、代码示例和HTML代码示例。很少有哪个程序员会处于好奇漫无目的地学习VisualBasic命令。我希望本书能够展示每个VisualBasic命令的确切用法,在编写本书时始终如一地坚持这一原则。在介绍每个命令时,都会提供一个简单的例子,这些例子直接输入便可立...

图书目录

Chapter 1 Visual Basic.Net的特点 1

Visual Basic.Net的新功能 1

语言变化 3

数据变量类型 4

IDE 8

面向对象的概念 12

基本框架部件 17

工程类型 19

选择工程类型 19

错误处理 20

绑定 27

命令组 28

财务 28

磁盘访问 28

数学 29

日期和时间 29

字符串 29

Chapter 2 ASCII/Unicode表 31

Chapter 3 匈牙利表示法 41

Chapter 4 编码基础示例 43

将文件读到数组 43

从数据库中向数组中添加数据 44

从数组中填写组合框 46

绘制模拟时钟 46

激活背景色的用户设置 47

创建浏览文件 48

对图片使用.NET图形函数 49

使用Windows API播放声音 50

通过Outlook发送电子邮件 51

居中窗体 52

接收EXE传递的参数 53

显示可用字体列表 54

Chapter 5 XML 55

XML与HTML的区别 56

XML功能 56

XML文档结构 57

字符数据标记 58

空白属性 58

XML-Link标记 59

注释标记 59

DTD 60

通过.NET Framework访问XML 60

编写XML文件 61

读取XML文件 63

Chapter 6 语言参考 65

! 65

# 65

# 66

#Const 67

#if...#else...#endif 67

#Region 68

$ 69

% 69

& 70

&= 71

'' 71

* 72

*= 72

73

74

= 74

- 75

-= 75

/ 76

/= 77

< 77

<= 78

<> 79

= 79

> 80

>= 80

81

\ 82

\= 82

^ 83

^= 83

... 84

Abs 85

AddHandler 85

AddressOf 86

And 87

AndAlso 87

AppActivate 88

Asc 89

AscW 89

Atan 90

Beep 91

Call 91

CallByName 92

CBool 93

CByte 93

CChar 94

CDate 94

CDbl 95

CDec 96

ChDir 96

ChDrive 97

Choose 98

Chr 98

Chrw 99

CInt 99

Class...End Class 100

CLng 101

CObj 101

Collection 102

Command 103

Const 103

Cos 104

CreateObject 105

CShort 105

CSng 106

CStr 106

CType 107

CurDir 108

DateAdd 108

DateDiff 109

DatePart 110

DateSerial 110

DateValue 111

Day 112

DDB 112

Declare 113

Delegate...End Delegate 114

DeleteSetting 114

Dim 115

Dir 116

Do...Loop 117

DoEvents 118

End 118

Enum 119

Environ 120

EOF 120

Erase 121

Err Object 122

Error 122

ErrorToString 123

Event 123

Exit 124

Exp 125

False 125

FileAttr 126

FileClose 127

FileCopy 127

FileDateTime 128

FileGet 128

FileLen 129

FileOpen 130

FilePut 131

FileWidth 131

Filter 132

Fix 133

For Each...Next 134

For...Next 134

Format 135

FormatCurrency 136

FormatDateTime 137

FormatNumber 138

FormatPercent 138

FreeFile 139

Friend 140

Function...End Function 140

FV 141

GetAllSettings 142

GetAttr 143

GetChar 143

GetException 144

GetObject 144

GetSetting 145

GetType 146

GoTo 147

Hex 147

Hour 148

If...Then...ElseIf...End If 148

IIf 149

Implements 150

Imports 151

Input 151

InputBox 152

InputString 153

InStr 154

InStrRev 154

Int 155

Interface...End Interface 156

IPmt 157

IRR 157

Is 158

IsArray 159

IsDate 159

IsDbNull 160

IsError 161

IsNothing 161

IsNumeric 162

IsReference 163

Join 163

Kill 164

LBound 165

LCase 165

Left 166

Len 166

Like 167

LineInput 168

Loc 168

Lock...Unlock 169

LOF 170

Log 170

LSet 171

LTrim 172

Me Property 172

Mid 173

Mid 173

Minute 174

MIRR 175

MkDir 175

Mod 176

Month 176

MonthName 177

MsgBox 178

Namespace...End Nanespace 179

Not 179

Now 180

NPer 181

NPV 182

Oct 182

On Error... 183

Option Compare 184

Option Explicit 184

Option Strict 185

Or 186

OrElse 186

Partition 187

Pmt 188

PPmt 188

Print£PrintLine 189

Private 190

Property...End Property 191

Public 192

PV 192

QBColor 193

RaiseEvent 194

Randomize 194

Rate 195

ReDim 196

Rem 196

RemoveHandler 197

Rename 198

Replace 198

Reset 199

Resume 200

Return 200

RGB 201

Right 201

RmDir 202

Rnd 203

Round 203

RSet 204

RTrim 205

SaveSetting 205

Second 206

Seek 206

Select Case 207

SendKeys 208

SetAttr 209

Shell 209

Show 210

Sign 211

Sin 211

SLN 212

Space 213

Spc 213

Split 214

Sqrt 215

Static 215

Stop 216

Str 217

StrComp 217

StrConv 218

StrDup 219

StrReverse 219

Structure...End Structure 220

Sub...End Sub 221

Switch 222

SYD 222

Synclock...End Synclock 223

Tab 224

Tan 224

Throw 225

TimeOfDay 226

Timer 226

TimeSerial 227

TimeValue 227

Today 228

Trim 229

True 229

Try...Catch...Finally 230

TypeName 231

UBound 231

UCase 232

Val 233

Valueê D 233

VarType 234

WeekDay 234

WeekdayName 235

While...End While 236

With...End With 236

Write£WriteLine 237

XOR 238

Year 239

Chapter 7 对象模型图 241

从Visual Basic.NET访问COM 241

从.NET访问COM对象 241

提供COM到.NET类的访问 245

手工组件注册 249

Chapter 8 ADO.NET 251

ADO.NET概述 251

DataAdapter对象 251

Connection对象 253

DataSet对象 253

BeginEdit方法 255

Clone方法 256

CommandText属性 256

CommandType属性 258

Commit方法 259

ConnectionString属性 260

DataType属性 261

Delete方法 262

ExecuteNonQuery方法 263

Fill方法 264

GetXml方法 265

NewRow方法 267

Open方法 267

Parameters属性 268

ParentTable属性 269

Provider属性 271

RowState属性 272

Table属性 272

WriteXml方法 273

Chapter 9 Excel XP对象模型图 277

Activate方法 281

ActiveCell属性 282

ActiveSheet属性 283

ActiveWorkbook属性 283

Add方法 284

AutoFilter方法 285

Calculation属性 286

Cells属性 286

Close方法 287

ColorIndex属性 288

Copy方法 288

Delete方法 289

DisplayAlerts属性 290

FontStyle属性 290

Formula属性 291

FormulaR1C1属性 292

HorizontalAlignment属性 292

Insert方法 293

LineStyle属性 294

Move方法 294

Name属性 295

NumberFormat属性 296

Range对象 296

ScreenUpdating属性 297

Select方法 298

Value属性 298

VerticalAlignmant属性 299

Weight属性 300

Chapter 10 Word XP对象模型图 301

ActiveDocument属性 310

Add方法 311

Alignment属性 312

ApplyBulletDefault方法 312

Assistant属性 313

Compare方法 314

ComputeStatistics方法 314

FirstLineIndent属性 315

Font对象 316

Height属性 316

InsertBefore方法 317

LeftIndent属性 318

LineSpacing属性 318

ListParagraphs属性 319

MoveDown方法 319

MoveLeft方法 320

MoveRight方法 321

MoveUp方法 322

Name属性 322

Open方法 323

Paragraphs集合 324

RightIndent属性 324

Selection对象 325

Shading属性 325

SpaceAfter属性 326

SpaceBefore属性 327

TypeBackspace方法 327

TypeText方法 328

Width属性 328

Chapter 11 Outlook对象模型图 331

Address属性 333

Body属性 334

ClearRecurrencePattern方法 335

Controls属性 335

Count属性 336

CreateItem方法 336

CreateObject方法 337

CurrentFolder属性 338

CurrentUser属性 338

Display方法 339

DisplayName属性 339

Duration属性 340

FileAs属性 341

GetDefaultFolder方法 341

GetInspector属性 342

GetNameSpace方法 343

Importance属性 343

MeetingStatus属性 344

ModifiedFormPages属性 345

ResponseState属性 345

Save方法 346

Sensitivity属性 346

ShowFormPage方法 347

UserProperties集合 348

Chapter 12 Internet Explorer对象模型图 349

Back方法 351

Document对象 351

HRef属性 352

Item方法 353

Length属性 354

OnMouseOver事件 355

Submit方法 356

Chapter 13 Active Server Pages.NET对象图 359

ContentType属性 361

Cookies属性 362

Expires属性 363

Form属性 364

QueryString属性 364

ScriptTimeout属性 365

ServerVariables属性 366

SessionID属性 366

URLEncode方法 367

Write方法 368