Learning the ins and outs of the Development Environment before you learn visual basic is somewhat like learning for a test you must know where all the functions belong and what their purpose is. First we will start with labelling the development environment.
Visual basic functions work similar to Microsoft word eg the Tool Bar and the tool box is similar to other products on the market which work off a single click then drag the width of the object required. The Tool Box contains the control you placed on the form window. All of the controls that appear on the Tool Box controls on the above picture never runs out of controls as soon as you place one on the form another awaits you on the Tool Box ready to be placed as needed.
1.The project explorer window
The Project explorer window gives you a tree-structured view of all the files inserted into the application. You can expand these and collapse branches of the views to get more or less detail (Project explorer). The project explorer window displays forms, modules or other separators which are supported by the visual basic like class'es and Advanced Modules. If you want to select a form on its own simply double click on the project explorer window for a more detailed look. And it will display it where the Default form is located.
The Default Layout
When we start Visual Basic, we are provided with a VB project.A VB project is a collection of the following modules and files.
The global module( that contains declaration and procedures)
The form module(that contains the graphic elements of the VB application along with the instruction )
The general module (that generally contains general-purpose instructions not pertaining to anything graphic on-screen)
The class module(that contains the defining characteristics of a class, including its properties and methods)
The resource files(that allows you to collect all of the texts and bitmaps for an application in one place)
Microsoft have included some freebies with visual basic to show its capabilities and functions. Dismantling or modifying these sample projects is a good way to understand what is happening at runtime. These files can be located at your default directory /SAMPLES/
To Open these projects choose 'Open Project' from the 'File' menu. Then Double click on the samples folder to open the directory then Double click on any project to load it.
Making your first *.exe!?
To make an excutable from a project choose 'MakeMake project.exe from the 'File' menu. Then click once on the Make project.exe choose a default location to store your executable, you can also change some advanced options by clicking on the Options.. tag before saving your exe
Sunday, August 26, 2007
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment