Wednesday, February 25, 2009

Creating simple application in visual basic

Structure Of A Visual Basic Application
A VISUAL BASIC Application (Project) will be of .VBP extension and related forms are saved with .frm extension. A Simple VISUAL BASIC Project (.VBP).
A Visual Basic Application (Project - saved as a file with .VBP extension) is made up of:
1. Forms
Windows that you create for user interface (saved as a file with a .FRM extension)
2.Controls
Graphical features drawn on forms to allow user interaction (text boxes, labels, scroll bars, command buttons, etc.) (Forms and Controls are also called objects.)
3.Properties
Every characteristic of a form or control is specified by a property. Example properties include names, captions, size, color, position, and contents.
Visual Basic applies default properties. You can change properties at design time or run time.
4.Methods
Built-in procedure that can be invoked to give some action to a particular object.
5.Event Procedures
Code related to some object. This is the code that is executed when a certain event occurs.

6.General Procedures
Code not related to objects. This code must be invoked by the application.

No comments: