Rabu, 07 April 2010

Controls are objects that can be placed on a form Visual Basic

Visual Basic is basically a computer programming language high level (High Level Language) such as java program where the instructions are like human language, so much easier to understand.
Visual Basic is a development of the language BASIC (Beginner `s All-Purpose Symbolic Instruction Code). At first, BASIC was designed in order to be used by novice programmers. Visual Basic still retaining some of the syntax or format of writing a program in BASIC language.
Some of the capabilities or benefits of Visual Basic is :
  1. Can be used to create Windows-based applications easily and quickly, which produces a final extension programs. EXE executable in nature, or can be directly executed.
  2. Can be used to create objects such as a program assistant Active X control, Help files, Internet applications, and so on.
Menu Bar : Is a menu bar at the top of the display menus from Visual Basic, including:
File: Managing Files and Printing, as well as to create executable EXE file. For example, New, Save, Open, and so on.
  1. Edit: standard editing function, Undo and Searching. For example Cut, Paste.
  2. View: Show or hide the Form Window and the Toolbar.
  3. Project: Set the project properties, add or reduce the form and module, as well as to increase or decrease the control object is used.
  4. Debug: Start or stop debugging and stepping.
  5. Run: run the program, such as Run, Build.

Toolbox : a collection of symbols is the control / object that contain all the objects or controls needed to make an application program.
Form Designer : It is a appearance in the middle (largest) as a form of work design and the object or control is placed.
Code Window : It is a appearance in the middle (largest) that alternate with Form Designer, containing the codes of the program for each object or control. Source code is the control center of the application ordered anything done by the application program.
Project Explorer : It is a window on the right above that describes the hierarchy of project files / programs that are undertaken. Hierarchy / the contents of this project can be forms or modules.
Properties Window : It is the right of the window that displays the properties or the nature or characteristics of a form or control. List this property can be changed according to the form or control that was selected.
Toolbar : This is the icon row of buttons below the menu bar that represents a specific command from Visual Basic. Usefulness of each button from left to right can be seen as follows.
  1. Add Project: Adding the project into an existing project.
  2. Data View Window: Displays the data view window.
  3. Toolbox: Displays the window toolbox.
  4. Object Browser: Displays the Object Browser Window.
  5. Form layout window: Displays the Form Layout window which serves to show the position of form on the monitor screen.
  6. Properties window: Displays the Properties window.
  7. Project Explorer: Displays windows explorer project.
  8. Start / Break / End: Running / pause / stop the project made.
  9. Save Project Group: Saving the Visual Basic project.
  10. Open Project: Opens the Visual Basic project that already exists.
  11. Menu Editor: Displays menu that serves as editor menu maker.
  12. Add Item: Adding components or objects into the window.
Controls are objects that can be placed on a form. Form itself is a window in the application that created the standard form where the title and box with minimize button, restore and maximize. There are many controls that can be placed on the form in accordance with the needs of our program.

 (Pointer) To select the control in the form.


 (Picture box) container box drawing

(Paper label) that is static or can not be changed by the user


 (Text Box) box where users enter text / data input


 (Frame) Box for grouping several objects of control.


 (Command button) key / button to trigger a specific program of action

 (Check box) option box that nature is free to choose.


 (Vscroll bar ) Has the form of a scroll bar can be moved up and down the vertical shape.


 (Option box) its option box to select one.


 (Combo box) shaped box drop down options.


 (List box) Box-shaped selection list.


 (Hscroll bar) Has the form of a scroll bar can be shifted to left and right horizontal.

 (timer) timers.


 (Drive list box) Grid computer drive option .


 (Dir list box) Box list of directories / folders computer.


 (File list box) Grid list of files on your computer.


 (Shape) Built forms flat (square, rectangle, circle, ellipse).


 (Line) Line form to create.


 (Picture box) Container for a display of the image file.


 (Data) Container for a display of the image file.


 (OLE) Controls to include other objects.


Programming Visual Basic programming techniques using an OOP (Object Oriented Programming) is a programming technique that models the program as a collection of objects that have relationships to each other or intertwined with each other wistful.

Each control (object) has properties, methods and events different.
Properties are attributes attached to a control (object) which is usually the appearance characteristics such as color, typeface, size and so on. Property of a control (object) can be changed at the time of programming (using the property window) or at the time the program starts (using the program codes in the code window).
Method is the action that is owned by the controls (objects) so that the user (programmer) can use it to manipulate things. Method depends on the instructions given by the programmer through the writing of code. Example: Command1.Click
Event is an event or anything that can be experienced by an object. A control (object) can have a lot of events. Example: Command1_Click (). Example: Command1.Caption = "OK"

Tidak ada komentar:

Posting Komentar

.::BY JUMBHO-MY AT HOME IN THE JEPARA CITY OF BEAUTIFUL::.