Category Archive for: Getting Started with Visual Basic

The Docking Tab

In this tab, you specify which windows will be dockable. A dockable window is attached (or “anchored”) together windows that are dockable or to the main window. When you move a dockable window, it “snaps” to the new location. You can move a non dockable window anywhere on the screen. Check the box in front of…

Read More →

Customizing the Environment

After familiarizing yourself with the IDE, you will probably want to customize it according to your taste and requirements. To access the customization tools, choose Tools> Options to open the Options dialog-box, as shown. Let’s now look at the various ways you can customize the IDE by using the settings in this dialog box. The Editor Tab You use…

Read More →

Visual Development and Event-Driven Programming

Forms and controls are the basic elements in the user interface of any .windows application. in V Basic, these elements are called objects because they are manipulated like objects. Objects have properties and methods, and they read to external events, as does any physical object. Your car, for example. is a physical object, and one of.its properties is color. Normally.…

Read More →

Programming an Application

Our next application is called MSVB_2, and. you will find it in the Example2 folder in this chapters folder on the CD. Start a new project, name the project MSVB_2, name its Form Examples, and then save it in its own folder. Now, follow these steps: 1. When you are back in the Visual Basic IDE, select…

Read More →

The States of Visual Basic

Let’s explore the role of the Immediate window while the application is in break state. Place the pointer in the Immediate window and type the following: Print Examplel.Caption As you .recall, Examplel is the name of t e Form, and Caption is the name of the property that sets or reads the Form’s caption. The previous statement…

Read More →

Designing the User Interface

Designing the application’s user interface consists of drawing the elements on the Form. In our first application, the user can select one of the three major credit cards (the form of payment) and one or more of the three items listed on the right half of the Form shown. To design the Form shown , follow these steps:…

Read More →

Your First VB Project

When you select the Standard EXE type of project in the New Project window, Visual Basic creates a new project named Project 1. Project 1 is the top item in the Project Explorer window. The Forms folder under the project name contains the. names of all Forms that make up the project. As you will see in the…

Read More →

The Immediate Window

The Immediate window at the bottom of the IDE (if it’s not visible, choose View» Immediate Window) is a debugging aid. While an application is running, you can stop it and use the Immediate window to examine or change the values of the application’s variables and to execute Visual Basic commands in Immediate mode. The Immediate window is one…

Read More →

Creating a New Toolbar

To create a new toolbar, follow these steps:, 1. Choose View> Toolbars > Customize to open the Customize dialog box. 2. Select the Toolbars tab, and click the New button. 3. Enter the name of the new toolbar (in Figure 1.3, it’s MyToolbar).  A small empty toolbar appears on your screen. 4. To add icons to your…

Read More →

One Language, Three Editions

I assume that you have installed Visual Basic 6. This means you ha\re already decided which edition of Visual Basic you are going to use. Visual Basic comes in three flavors: • The Visual Basic Learning edition • The Visual Basic Professional edition • The Visual Basic Enterprise edition. ‘The Visual Basic Learning edition is the introductory edition…

Read More →

Back to Top