Visual Basic Programming cover

Visual Basic Programming

Rating 3.4
Word count
122K words
Chapters
222
ISBN
9787115473820

Tags

Summary

The book comprises 10 chapters: (1) Overview of Visual Basic, (2) Fundamentals of Visual Basic Programming, (3) Control Structures in Visual Basic, (4) Common Basic Controls in Visual Basic, (5) Arrays, (6) Procedures, (7) Interface Design, (8) Files, (9) Graphics and Multimedia, (10) Database Programming.

Editor's review

Visual Basic Programming, written by Lu Kui, is a classic introductory programming textbook for beginners. Using Visual Basic 6.0 as its development environment, it systematically explains the fundamental concepts of programming, the language basics, forms and controls, menu design, file operations, and database programming. Its clear structure progresses from simple to complex, and numerous practical examples guide readers step by step toward mastering VB's core techniques and application methods.

As a technical tutorial, the book's strength lies in its plain narrative style and solid knowledge system. Rather than pursuing flashy tricks, the author focuses on building a firm foundation, which is crucial for beginners to establish correct ways of thinking. The explanations of key concepts such as event-driven programming and visual interface design are particularly effective, helping readers understand how Windows applications work.

Although Visual Basic 6.0 is no longer a mainstream development tool, the programming ideas, problem-decomposition methods, and logical-construction skills the book teaches retain lasting value. For readers who need to quickly understand the principles of desktop application development or who work on maintaining legacy VB systems, the book remains a practical stepping stone. It is more like a patient mentor, guiding you through the entire process from understanding code to writing useful programs.

Who it's for

A good fit for

  • Lower-year students in computer-related majors at colleges and universities
  • Programming beginners who want to systematically learn desktop application development
  • Technical personnel who need to understand or maintain legacy VB6-based systems
  • Self-learners interested in event-driven and visual programming concepts

Not a good fit for

  • Developers seeking to learn modern languages such as VB.NET on the .NET platform or C#
  • Senior programmers who want to delve into advanced programming techniques or software architecture

Reading tips

  1. Read the chapters in order and be sure to practice every sample code in the book hands-on
  2. After understanding the basic syntax, try modifying and extending the book's cases to deepen your understanding
  3. Compare this book with a foundational tutorial in a modern programming language (such as Python) to appreciate the commonalities of programming ideas

About the publisher

Posts & Telecom Press China · Founded in 1953

Posts & Telecom Press is known for its strengths in science and technology, computing, and information and communications titles, and has extended its publishing into photography, art, software learning, and inspirational growth, giving it a fairly diverse range. Its catalog includes computing and communications works such as Refactoring and Patterns (Revised Edition) and Huawei Switch Learning Guide (Second Edition), alongside bilingual collector's editions such as The Little Prince (Chinese-English-French illustrated collector's edition), The Great Gatsby, and Three Days to See. Beijing Ten Years: 1980-1990 and Ghost Blade: WLOP Personal Illustration Collection reflect its presence in photography and art. Its authors include Antoine de Saint-Exupéry, Helen Keller, Joshua Kerievsky, Wang Da, Zhang Zhaozeng, and WLOP.

Contents

  1. 版权信息
  2. 内容提要
  3. 前言
  4. 第1章 Visual Basic概述
  5. 1.1 Visual Basic的编程特点
  6. 1.1.1 Visual Basic的发展历史
  7. 1.1.2 Visual Basic的编程特点
  8. 1.2 Visual Basic的启动与退出
  9. 1.3 Visual Basic的集成开发环境
  10. 1.3.1 标题栏
  11. 1.3.2 菜单栏
  12. 1.3.3 工具栏
  13. 1.3.4 工具箱
  14. 1.3.5 窗口
  15. 1.4 可视化编程的基本概念
  16. 1.4.1 对象和类
  17. 1.4.2 属性
  18. 1.4.3 事件
  19. 1.4.4 方法
  20. 1.5 窗体
  21. 1.5.1 窗体的属性
  22. 1.5.2 窗体的事件
  23. 1.5.3 窗体的方法
  24. 1.6 Visual Basic开发应用程序
  25. 1.6.1 编写简单的Visual Basic应用程序
  26. 1.6.2 用Visual Basic 开发应用程序的一般步骤
  27. 1.7 程序调试
  28. 1.7.1 错误类型
  29. 1.7.2 调试与排错
  30. 本章小结
  31. 习题1
  32. 第2章 Visual Basic程序设计基础
  33. 2.1 数据类型
  34. 2.1.1 数值型数据
  35. 2.1.2 字符串型数据
  36. 2.1.3 逻辑型数据
  37. 2.1.4 日期型数据
  38. 2.1.5 对象型数据
  39. 2.1.6 可变类型数据
  40. 2.2 常量与变量
  41. 2.2.1 常量
  42. 2.2.2 变量
  43. 2.3 Visual Basic中的运算符和运算表达式
  44. 2.3.1 算术运算符与算术表达式
  45. 2.3.2 字符串运算符和字符串表达式
  46. 2.3.3 日期表达式
  47. 2.3.4 关系运算符与关系表达式
  48. 2.3.5 逻辑运算符与逻辑表达式
  49. 2.3.6 表达式的运算顺序
  50. 2.4 Visual Basic程序书写规则
  51. 2.5 Visual Basic的常用内部函数
  52. 2.5.1 数学函数
  53. 2.5.2 数据类型转换函数
  54. 2.5.3 字符串操作函数
  55. 2.5.4 日期和时间函数
  56. 本章小结
  57. 习题2
  58. 第3章 Visual Basic程序控制结构
  59. 3.1 顺序结构
  60. 3.1.1 赋值语句
  61. 3.1.2 数据输入和输出
  62. 3.1.3 暂停与程序结束语句
  63. 3.1.4 应用举例
  64. 3.2 选择结构
  65. 3.2.1 单行结构If条件语句
  66. 3.2.2 块结构If条件语句
  67. 3.2.3 多分支条件语句
  68. 3.2.4 应用举例
  69. 3.3 循环结构
  70. 3.3.1 For…Next循环结构
  71. 3.3.2 Do…Loop循环结构
  72. 3.3.3 While…Wend循环结构
  73. 3.3.4 循环的嵌套
  74. 3.3.5 应用举例
  75. 本章小结
  76. 习题3
  77. 第4章 Visual Basic常用基本控件
  78. 4.1 概述
  79. 4.2 命令按钮
  80. 4.2.1 命令按钮的常用属性
  81. 4.2.2 命令按钮的常用事件
  82. 4.3 标签和文本框
  83. 4.3.1 标签
  84. 4.3.2 文本框
  85. 4.4 单选按钮、复选框和框架
  86. 4.4.1 单选按钮
  87. 4.4.2 复选框
  88. 4.4.3 框架
  89. 4.5 列表框和组合框
  90. 4.5.1 列表框
  91. 4.5.2 组合框
  92. 4.6 图像框和图片框
  93. 4.6.1 图片框
  94. 4.6.2 图像框
  95. 4.7 滚动条
  96. 4.7.1 滚动条的常用属性
  97. 4.7.2 滚动条的常用事件
  98. 4.8 计时器
  99. 本章小结
  100. 习题4
  101. 第5章 数组
  102. 5.1 数组的基本概念
  103. 5.1.1 数组与数组元素
  104. 5.1.2 数组的维数
  105. 5.2 数组的定义
  106. 5.2.1 一维数组的定义
  107. 5.2.2 一维数组元素的引用
  108. 5.2.3 二维数组的定义
  109. 5.2.4 二维数组的引用
  110. 5.2.5 动态数组的定义
  111. 5.3 数组的基本操作
  112. 5.3.1 一维数组的基本输入与输出
  113. 5.3.2 一维数组的应用
  114. 5.3.3 二维数组的基本输入与输出
  115. 5.3.4 二维数组的应用
  116. 5.3.5 与数组操作相关的几个函数
  117. 5.4 数组应用举例
  118. 5.4.1 一维数组应用举例
  119. 5.4.2 二维数组应用举例
  120. 5.5 控件数组
  121. 5.5.1 控件数组的概念
  122. 5.5.2 控件数组的建立
  123. 本章小结
  124. 习题5
  125. 第6章 过程
  126. 6.1 事件过程
  127. 6.2 Sub过程
  128. 6.2.1 子过程的定义
  129. 6.2.2 子过程的建立
  130. 6.2.3 子过程的调用
  131. 6.3 Function过程
  132. 6.3.1 函数过程的定义
  133. 6.3.2 函数过程的建立
  134. 6.3.3 函数过程的调用
  135. 6.4 过程之间参数的传递
  136. 6.4.1 形式参数与实际参数
  137. 6.4.2 参数传递
  138. 6.4.3 数组作为过程的参数
  139. 6.5 过程递归调用
  140. 6.6 变量作用域及生存期
  141. 6.6.1 变量的作用域
  142. 6.6.2 变量的生存期
  143. 本章小结
  144. 习题6
  145. 第7章 界面设计
  146. 7.1 菜单设计
  147. 7.1.1 下拉式菜单
  148. 7.1.2 弹出式菜单
  149. 7.2 对话框设计
  150. 7.2.1 自定义对话框
  151. 7.2.2 通用对话框
  152. 7.2.3 通用对话框控件的使用
  153. 7.3 状态栏设计
  154. 7.4 工具栏设计
  155. 7.4.1 使用手工方式制作工具栏
  156. 7.4.2 使用工具栏控件制作工具栏
  157. 7.5 多文档界面设计
  158. 7.5.1 多文档界面
  159. 7.5.2 建立多文档界面
  160. 7.5.3 创建MDI应用程序的菜单
  161. 7.6 Visual Basic 的工程结构
  162. 本章小结
  163. 习题7
  164. 第8章 文件
  165. 8.1 文件的基本概念
  166. 8.1.1 文件的类型
  167. 8.1.2 文件操作语句和函数
  168. 8.2 顺序文件
  169. 8.2.1 顺序文件的打开与关闭
  170. 8.2.2 顺序文件的读写
  171. 8.3 随机文件
  172. 8.3.1 定义数据类型和变量声明
  173. 8.3.2 随机文件的打开与关闭
  174. 8.3.3 随机文件的读写操作
  175. 8.4 文件系统控件
  176. 8.4.1 驱动器列表框
  177. 8.4.2 目录列表框
  178. 8.4.3 文件列表框
  179. 8.4.4 文件系统控件的组合使用
  180. 8.5 文件系统对象模型
  181. 8.5.1 文件系统对象模型概述
  182. 8.5.2 文件系统对象
  183. 8.5.3 管理驱动器
  184. 8.5.4 管理文件夹
  185. 8.5.5 管理文件
  186. 本章小结
  187. 习题8
  188. 第9章 图形及多媒体
  189. 9.1 鼠标和键盘事件
  190. 9.1.1 鼠标事件
  191. 9.1.2 键盘事件
  192. 9.1.3 拖放
  193. 9.2 图形控件与方法
  194. 9.2.1 图形的坐标系统
  195. 9.2.2 图形控件
  196. 9.2.3 图形方法
  197. 9.3 多媒体控件
  198. 9.3.1 Animation控件
  199. 9.3.2 MMControl控件
  200. 9.3.3 Shockwave Flash控件
  201. 本章小结
  202. 习题9
  203. 第10章 数据库程序设计
  204. 10.1 数据库基础
  205. 10.1.1 数据库基本概念
  206. 10.1.2 结构化查询语言SQL
  207. 10.2 Visual Basic可视化数据管理器
  208. 10.2.1 建立数据库
  209. 10.2.2 建立数据查询
  210. 10.3 用控件访问数据库
  211. 10.3.1 数据控件的属性
  212. 10.3.2 数据控件的常用方法和事件
  213. 10.3.3 记录的维护操作
  214. 10.4 ADO对象编程模型
  215. 10.4.1 DAO、RDO和ADO
  216. 10.4.2 ADO对象模型
  217. 10.4.3 使用ADO数据控件
  218. 10.4.4 ADO数据控件用法
  219. 10.4.5 ADO控件的事件
  220. 本章小结
  221. 习题10
  222. 参考文献

FAQ

Which version of Visual Basic does this book use?
The book is based on the classic Visual Basic 6.0 development environment, a very mature and widely used version in VB's history.
Is there still value in learning VB 6.0 today?
Knowledge of VB 6.0 still has value for understanding the basic principles of Windows desktop programs, the event-driven programming model, and rapid development of small tools. But if your goal is commercial software development, it is advisable to go on to learn modern languages under the .NET framework.
Is this book suitable for people with no programming background at all?
Very suitable. The book starts from scratch, assumes no prior programming knowledge, and guides beginners step by step; it is one of the classic zero-foundation textbooks.

Related on WeRead

Comments

Find this book

This site is an index: you start “Search all sources” in your browser, and the entries it lists all point to third-party sites; please judge their availability yourself.

About the author

陆奎 Author

Lu Kui is an author about whom limited public information is available; the details currently confirmed center on the field of computer programming instruction. Two works by this author are included in the collection: Visual Basic Programming and Visual Basic Programming Experiments and Exam Guide, both commonly classified under programming design. Judging from the combination of these two titles, the author pays attention both to systematic explanation of basic programming language knowledge and to practical elements such as hands-on experiments and exam guidance, reflecting a textbook-oriented approach aimed at learners. The former focuses on fundamental concepts and methods of program design, while the latter supports experimental and examination needs, forming a structure in which knowledge learning and hands-on practice are connected. Because birth and death dates, nationality, and professional career are not found in the available materials, no speculation is made here. Overall, Lu Kui's writing style tends toward practicality and instructional support, suitable as a reference for Visual Basic beginners and exam preparation.

殷晓波 Author

Yin Xiaobo — public information is limited, but it can be confirmed that Yin is one of the authors of computer textbooks for higher education. Together with Lu Kui, Yin co-edited Visual Basic Programming, published by Posts & Telecom Press in 2018 as a planned computer textbook for universities. In the same direction, the library also includes Yin's Visual Basic Programming: Experiments and Exam Guide, indicating that the writing covers both classroom instruction and teaching components such as lab work and examinations. Judging from the available works, Yin Xiaobo's writing focuses on the basics of Visual Basic programming for university students' introductory learning and hands-on practice, with an emphasis on textbook standards and practicality and chapters arranged to follow course progress. These textbooks provide beginners with systematic introductory material for understanding basic programming concepts and mastering programming methods in a visual development environment, and are suitable as companion books for related courses.

More by the same author

Top rated in the same category