发布网友 发布时间:2024-10-24 06:26
共1个回答
热心网友 时间:2024-11-04 13:36
Will start us from this chapter officially to enter VB the programming world, but this also merely will be a beginning, will have to write function formidable software, but also will have to study very many things, that will have to look later the VB high-quality course, I also diligently have studied! The button is we in the Windows operation saw most controls, they have various function: "Confirmed", "the cancellation", "next step" and so on, these all are the button performance, moreover also has the very many graphs speech the button, actually they certainly do not have any differently, all buttons all are through single-click (click) the event to realize, only is different in the semblance. Under lets us establish a simplest button, double-clicks the toolbox CommandButton, will establish a shape like chart on the window 4 the _ button, it will lack province (the Name attribute) will be Command1, we will be allowed to change name it are cmdExit, will suppose the Caption attribute is "the withdrawal", then will double-click, the button will fill in the code: Private Sub cmdExit_Click () presses down F5 or on the tool strip broadcast button, the operating procedure. Chart 4 _ when you press down withdraws from the button time, can automatically withdraw from the procedure, the reason is when you single-click the button activated its Click event, the execution "Unload Me" the sentence, causes