انت هنا الان : شبكة جامعة بابل > موقع الكلية > نظام التعليم الالكتروني > مشاهدة المحاضرة

Second Lecture: Create New Application

الكلية كلية هندسة المواد     القسم قسم البوليمرات والصناعات البتروكيمياوية     المرحلة 2
أستاذ المادة حسين محمد سلمان الشمري       09/12/2015 19:29:37
Second Lecture: Create New Application
The following steps are required to create an application in visual basic :
1- Select type of project new or existing: a form automatically appears in the form design. The basis for any application s inter face is the form that user should create. User can add other forms to the project.
2- Add Objects: To add objects(control tools) to the form use the tool box.
3- Set the properties for the objects through properties window.
4- Write the Codes. The visual basic code consist of statements and declarations. The code for an application can be written on the Code Editor Window. In this window user can view and edit quickly any of the code.
5- Run the Application: To run the application click the start button in the tool bar , or press F5.
6- Stop : To stop running the application and return to the visual basic program click on stop button in the tool bar.
7- Check if there is an error, return to step3, otherwise continue.
8- Save project.
9- Exit.

How to Create New Project in Visual Basic:
There are main three stages to build new project in the visual basic language ; understand these stages is very important to build and develop the applications for any project.
First Stage Form Design:
This stage include placement the tools on the form by two ways:
- Double click on the desired tool , it will appear on the middle of the form, then dragged to placed with the design.
- Single click on the desired tool, then the mouse curser to cross + and press and drag in diagonal to formulate the tool.
Second Stage Set Properties :
In this stage , all the properties of selected tools may be changed into the desired set according to many considerations decided by the application s nature. This stage done by dealing with the properties window.
Third Stage Write codes
All most, this stage consider as the important stage because it includes the center of actions in the required application. In this stage emerge the role of the good programmer who build the behavior of the application by write the required codes to deal with used objects on the designed form by its properties.
The codes written on the Codes Editor Window which may be accessed by two ways:
- Double click on the selected object, Or
- Follow the path View> code, and then select the selected object from the object box and select the event from the events box
The following figure illustrate the codes editor window :


المادة المعروضة اعلاه هي مدخل الى المحاضرة المرفوعة بواسطة استاذ(ة) المادة . وقد تبدو لك غير متكاملة . حيث يضع استاذ المادة في بعض الاحيان فقط الجزء الاول من المحاضرة من اجل الاطلاع على ما ستقوم بتحميله لاحقا . في نظام التعليم الالكتروني نوفر هذه الخدمة لكي نبقيك على اطلاع حول محتوى الملف الذي ستقوم بتحميله .