by Dinesh Thakur Category: Decisions and Conditions

An application needs a built-in capability to test conditions and take a different course of action depending on the outcome of the test. Visual Basic provides three control flow, or decision, structures :

 
by Dinesh Thakur Category: Decisions and Conditions

Step into: Most likely you will use step into command more than you will use step over command.

 
by Dinesh Thakur Category: Decisions and Conditions

Validation is a form of self protecting; it is better to reject bad data then spend hours trying to find out an error only to discover that the problem was caused by a “user error”.

 
by Dinesh Thakur Category: Decisions and Conditions

A message box is special type of Visual Basic window in which you can display a message to the user. You can display message, an optional icon, a title bar caption, and command buttons in a message box.

 
by Dinesh Thakur Category: Menus Procedure and Function

The code you write won’t be a monolithic listing. It will be made up of small segments called procedures and you will work on one procedure at a time. This is called modularized approach of programming.

 
by Dinesh Thakur Category: Menus Procedure and Function

You can create .exe file of your project which a executable file. In windows after clicking on the .exe file project starts running. The simple steps for creating .exe file are as follows:

 
by Dinesh Thakur Category: Menus Procedure and Function

When you pass a value to procedure you may pass it ByVal of ByRef

The ByVal sends a copy of the argument’s value to the procedure cannot alter the original value. ByRef sends a reference indicating where the value is stored in memory, allowing the called procedure to actually change the argument’s original value.  

 
by Dinesh Thakur Category: Menus Procedure and Function

While writing a Function procedure you must set up a return value. This return value is placed in the a variable that Visual Basic names the with the procedure name as function name.

 
by Dinesh Thakur Category: Menus Procedure and Function

1. You can use set of predefined standard dialog boxes in your projects for such tasks as specifying colors and fonts, printing, opening and saving. The common dialog boxes control, which is a custom control, allows your project to use the dialog boxes that are  provided as a part of the Windows environment.

 
by Dinesh Thakur Category: Menus Procedure and Function

1. When you create menus in the menu bar, you should group the commands according to their purpose. You can create a separator bar in a menu, which draws a bar across the entire menu.

 
by Dinesh Thakur Category: Menus Procedure and Function

1. Menus:

 

a. Menus consist of a menu bar with menu names, each of which drops down to display a list of menu commands.

 
by Dinesh Thakur Category: Multiple Forms

1. When using multiple forms in a project, it is important for you to consider each sub procedure or function procedure that you create. If the procedure will be used in only one form, then it should be included in the code for that form module.

 
by Dinesh Thakur Category: Multiple Forms

The variables declared in the General declaration of the section of standard code module are global and can be accessed from any other module, if the variable is public.

 
by Dinesh Thakur Category: Multiple Forms

One type of additional form in a project is an About box, such as the one you find in most Windows programs in help menu.

 
by Dinesh Thakur Category: Multiple Forms

Perhaps you have noticed the logo or window that often appears while program is loading. This initial form is called splash screen.

 
by Dinesh Thakur Category: Multiple Forms

The term used for the first form to display in the project is called start up object; this start up object might be a form or Main procedure.

 
by Dinesh Thakur Category: Multiple Forms

The startup form is the first form created in a project. However, you can select a different form to be the startup form, or you can specify your own Main Procedure.

 
by Dinesh Thakur Category: Multiple Forms

Forms may be used in more than one project. You might want to use a form that you created for one project in a new project.

 
by Dinesh Thakur Category: Multiple Forms

You can display a form with show method and Cancel a form with hide method use the hide method .When you want to make sure when form disappears.

 

Page 2 of 5



About Dinesh Thakur

Dinesh ThakurDinesh Thakur holds an B.SC (Computer Science), MCSE, MCDBA, CCNA, CCNP, A+, SCJP certifications. Dinesh authors the hugely popular blog. Where he writes how-to guides around Computer fundamental , computer software, Computer programming, and web apps. For any type of query or something that you think is missing, please feel free to Contact us.