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.

 
by Dinesh Thakur Category: Multiple Forms

i. hide method is used to remove the form from the screen.

ii.it does not get removed the memory location.

 
by Dinesh Thakur Category: Lists Loops and Printing

A function that controls horizontal spacing on the line is the spc(space). The space function differs from the tab function. In that we specify the number of spaces on the line that we want to advance from the last item printed.

 
by Dinesh Thakur Category: Lists Loops and Printing

VB provides string functions such as Left ,Right ,len.

 
by Dinesh Thakur Category: Lists Loops and Printing

So far, any printed output has been done with the PrintForm method. When we print using PrintForm , all output is produced as a graphic, which does not produce attractive text.

 
by Dinesh Thakur Category: Lists Loops and Printing

When the loop is executing we specify the increment number by which the value should be increase. Loop checks the condition whether it is true or not , if it is true then the body of the loop get executed and the variables value gets incremented by the specified number. Again, the loop checks the incremented value with the condition, if it is true then the body will execute and again increment value by the next value. But if the condition is false then it will exit the loop.

 
by Dinesh Thakur Category: Lists Loops and Printing

Do-Loop construct is used when we do not know how many iterations will be performed , where as when we know exact number of execution on the block of code, For-Next construct is used. To use this construct we have to use a counter.

 
by Dinesh Thakur Category: Lists Loops and Printing

A loop is series of one or more statements that executes more than one time. Loop statement repeats until a certain predefined condition is true. Two types of loop structures are available in VB. The do loop and for-next loop. The do loop constructs offers many variations and is used typically. If we do not know how many iterations will be performed.

 
by Dinesh Thakur Category: Lists Loops and Printing

We can use several methods to fill a listbox & combobox. If we know the list contents at design time and list never changes , we define list item in properties window.The list property holds the list of items for a listbox or combobox. To define the List property at design time, select the control and scroll the properties window to the List property.

 

Page 3 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.