Section 2 integrated development environments
Integrated environment of VB call IDE, made up of a lot of parts , include title board, menu fence, tool fence, controlling part case, And window body window, engineering management device window, attribute window, code window and window body overall arrangement window body overall arrangement, etc。 of designing etc。。 Have covered all functions, such as design which develops the application program, editting, compiling and debugging, etc。。
In VB, the application program calls the project too。 When start VB and open a new project for the first time, can see and pursue integrated development environment interface that show。
Visual Basic Integrated development environment
VB come and organize development of application program through project, use project come and manage and form files of application program。 One project uses the environment to make up by several window bodies, standard module generally。 The system manages project through the project menu, for instance add the window body, quote 。 System allow turn on and manage a lot of projects besides。
Section 3 Visual Basic language brief introductions
Basic use and do the elementary high-level language that used often most。 Its full name is Beginner' s All-purpose Symbolic Instruction Code, abbreviate as BASIC。 As its name suggests, Basic one specially for language that beginner design, because it easy to learn easy to know, So the body is popular。 Early Basic language to belong to and solve translating type, so can carry out line by line , So it can see the result carried out at once , this is a very convenient design for beginner。 But it have concept of structure either, one that is in procedure maintain and management have as much as other language problems。 But back-end Basic correct shortcoming of the above (such as Quick Basic), make it may used for and develop the large-scaler procedure too。
The language is the basic composition, which forms VB procedure。 VB has stipulated the form of sentences and function。
Grammar:
The sentence defines incantations [Sentence body]
Sentence define agree with and used in fixed function of sentence, sentence body appoint concrete content or want concrete operation that carry out of sentence。 All set of sentence VB language, carry on with VB sentence organic association finish a certain specific function the procedure。 Interface + procedure can solve a certain application problem。
VB application program code window write in" code editing machine" generally。 " editing machine of code" is like the word processing software of a piece of height specialization, there are many easies function of writing VB code, Pursue to show [Example Ex-Hello ]In" code editing machine" code that window written。
“Editing machine of code” window
Section 4 develop the application program with Visual Basic
Use VB programming, design appearance of application program first generally, write every target procedure code or other treatment procedure of incident respectively, Work of programming should be light more。
The procedure of establishing the application program is as follows:
Establish application program interface
The interface is the mutual bridge of user and procedure, Generally formed of window body and vision frame of the button, menu, text frameset。 with standard WINDOWS interface of application program that VB establish。 Require according to function of procedure and user and need of information interchange of procedure, Come to confirm that need those targets , plan the overall arrangement of the interface。
2。 Design by each attributes of target in interface
Demand and set up each attribute of target such as appearance, name,, size of targeted。 according to interface of planning。