21.txt
来自「VB文章集(含API、窗口、数据库、多媒体、系统、文件、等等)」· 文本 代码 · 共 13 行
TXT
13 行
Keeping track of VB source code builds
Keeping track of source code builds in VB can be easy, if you use the Version Numbering feature provided in EXE creations. Click on the options button when creating an EXE file. Then turn on the "Auto Increment" checkbox.
Versioning supports a three-segment version number: Major, Minor and Revision. The Auto Increment feature, if selected, will automatically increase the Revision number by one each time you run the Make Project command for this project.
Typically, build information will go on an About form. Just add a label called, "lblVersion" and add the following code to your form:
lblVersion.Caption = "Version: " & App.Major & "." & App.Minor & "."
& App.Revision
If my Major version number is 2, the Minor number is 1 and the Revision is 12, the label will display: "Version: 2.1.12"
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?