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

Third Lecture: The Tools in Visual Basic

الكلية كلية هندسة المواد     القسم قسم البوليمرات والصناعات البتروكيمياوية     المرحلة 2
أستاذ المادة حسين محمد سلمان الشمري       09/12/2015 19:33:29
Third Lecture: The Tools in Visual Basic
Introduction
Tools are objects that could be selected from tool box to be placed on form. When VB is used with new project , the program displays simple forms without controls (tools). Then tools could be placed on form in design stage to customize the form to the required application. Otherwise the user may use the ready design form called a Template.
1. Pointer: (not control) used to select tools already on form.
2. The rest of tools in tool box are divided to many categories according to their functions :
First The control tools :there are three different tools that are used for control (as switches ):
a) Command Button :used as a switch (such as Ok or/and Cancel) buttons. Code is written in the click event procedure of this tool.
b) Option (Radio) Button :For selection as a group. Many option is placed inside container (a Frame control) , one control is selected from the group all others of the group are automatically deselected.
c) Check Box: For a yes/no (true/false) selection. Used as individuals (not grouped). It may be selected more than one check control at same time.
Second Tools that deal with Text:
a) Text Box: For text edit, like Note Pad , it can be single line or multi lines. Box take any size.
b) List Box : for a list, user adds to and deletes from this list. It take any size.
c) Combo Box: consist of (list and arrow , when clicked a small list appears) , if user selects item from the list , it will be displayed in text box. Vertical size is fixed.
d) Label : Fixed text appear on form for remark.
Third Container Tool: is a frame tool ,which used to grouped many other tools. It is important in the application s interface design.
Example In this example we will design a project contain commands and options buttons used to change the color of form and used text box and check box to change the font in the text box:
1st Stage: Form Designer:



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