by Dinesh Thakur

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

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

 
by Dinesh Thakur

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

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

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

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

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.

 
by Dinesh Thakur

ListCount :

 

The application uses the list count property of listbox to store the number of item in the list. ListCount is always one more than the highest list index, since list index begins with zero.

 
by Dinesh Thakur

After adding items in list property of the combobox or listbox we may have to resize it .

 
by Dinesh Thakur

Combobox:

 

A combobox control is combination of textbox and listbox. This control enables user to select either by typing in the text into combobox or by selecting items from the list.

 
by Dinesh Thakur

ListBox :

ListBox present a list of choices that are displayed vertically in single column, if number of items exist the value can be displayed scrollbar automatically appear on control.