收藏 分享(赏)

Visual_Basic教程.doc

上传人:tangtianxu1 文档编号:3048071 上传时间:2018-10-02 格式:DOC 页数:50 大小:53.48KB
下载 相关 举报
Visual_Basic教程.doc_第1页
第1页 / 共50页
Visual_Basic教程.doc_第2页
第2页 / 共50页
Visual_Basic教程.doc_第3页
第3页 / 共50页
Visual_Basic教程.doc_第4页
第4页 / 共50页
Visual_Basic教程.doc_第5页
第5页 / 共50页
点击查看更多>>
资源描述

1、VBDOSCQbasicPascalVisual BasicVBVB-VB6.0VBVBIEVBDDDelphiVBVBDelphiVBVBVBVBMicrosoft WindowsMicrosoft WindowsWindowsWindows-Microsoft Windows SDKWindowsMicrosoft SDKevent-drivenCCSDKMicrosoft-Visual BasicVisualBaiscVBVBWindowsVB-VBVB-VBVBHTMLVBVBVB-MouseMovePaintPaintAutoDrawTrue-1PaintResizeResizeLo

2、adUnload2.FocusGotFocusLostFocusFocusGotFocusLostFocus3.ClickDbClickMouseDownMouseUp/MouseMoveDragDropMouseDownMouseMoveMouseUpDragOverDragOver4.KeyDownKeyUp/KeyPress5.ChangeChangeTextBoxDropDownComboBoxPathChangeFileBox6.TimerNameNameVB-Interger24VBInteger-3276832767Long-2,147,483,6482,147,483,647S

3、ingle-3.37E+383.37E+38Double-1.67E+3081.67E+308String065,535BooleanTrue/-1False/0DimDim As Dim Index As IntegerDim Index As Integer , Dim Number As LongDim Index , Number As IntegerDim Index=3%&!#Dim Index% Dim Index As IntegerConstConst COLOR=255-Dim IntegerArray(99) As Integer100099Dim IntegerArra

4、y(2 to 10) As Integer210Dim ThreeD(4,2 to 5,3 to 6) As Integer(444)TypeType As As As -End TypeType AddressStreet As StringZipCode As StringPhone As StringEnd TypeDim MyHome As AddressMyHome.-,WithWith MyHome.Street=.ZipCode=100037.Phone=12345678End WithVBVBVBBasic-VBBasicVBVisual BasicBasicBasicVBVB

5、BasicVBDDVBFunctionVBBasicVBVBDeclareDLLDimRedim-VBRemDOSDim a As String Rem Dim a As String -CVBVB_-VB-If-Then-If Then-End IfC VBThenIf Then End IfIf ThenElseEnd IfElseIfIf ThenElse IfElseEnd If1TrueFalse12TrueFalse23TrueFalse-NTrueFalseNN1ElseSelectVBSelectSelect Case Case -Case -Case -Case Else-E

6、nd SelectSelect Case a%Case 1Print a=1Case 2Print a=2Case ElsePrint a does not equal to 1 or 2.End Select-Cfor-VBForVBForFor = To Step -Next Step1StepDim a=0For I=1 To 10a=a+INext I110aDim a=0For I=10 To 1 Step C1a=a+INext IWhile-Do While - LoopWhile - Wend Do - Loop WhileWhile-Do While - LoopWhile

7、- Wend While-Do - Loop While DoWhileUntil-WhileWhileUntilWhileUntil While Not For-Whlie-*/Moda Mod babABABVB=-ABNot AAndOrXorEqvImpTTFTTFTTTFFFTTFFFTTFTTFTFFTFFFTTTDDTrue FDDFalse- -VBCommand1_Click()-VBVBVBVBWindowsclickCommandButton4-1NameCommand1cmdExitCaptionPrivate Sub cmdExit_Click()Unload MeE

8、nd SubF54-2-ClickUnload Me4-3ListTextCommand1Command2List1CaptionText1Text)Button1Caption-EnabledFalseButton2Caption=Button1EnabledFalseCommand1F54-4-GeneralDim StoreString As String VBPrivate Sub Command1_Click()Text1.Text = StoreStringCommand1.Enabled = FalseEnd SubPrivate Sub Command2_Click()StoreString = Text1.TextText1.Text = “ Command1.Enabled = TrueEnd Sub4-5-Undo/Redo-Button2Button1EnabledTrueCaptionPrivate Sub Command1_Click()If Command1.Caption = “ ThenStoreString = Text1.TextText1.Text = “ Command1.Caption = “-“ElseText1.Text = StoreStringCommand1.Caption = “End IfEnd Sub

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 高等教育 > 专业基础教材

本站链接:文库   一言   我酷   合作


客服QQ:2549714901微博号:道客多多官方知乎号:道客多多

经营许可证编号: 粤ICP备2021046453号世界地图

道客多多©版权所有2020-2025营业执照举报