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.

 
by Dinesh Thakur Category: Lists Loops and Printing

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 Category: Lists Loops and Printing

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

 
by Dinesh Thakur Category: Lists Loops and Printing

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 Category: Lists Loops and Printing

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.

 
by Dinesh Thakur Category: Array

A standard structure for storing data in any programming language is an array. Whereas individual variables can hold single entities, such as a number, date, or string, arrays can hold sets of related data.

 
by Dinesh Thakur Category: Array

 You may need to use two subscripts to identify tabular data, where data are arranged in rows and columns. To define a two-dimentional array or table, the Dim statement specfies the number of rows and columns in the array. The row is horizontal and the column is vertical.

 
by Dinesh Thakur Category: Array

List Index property is used to determine the array subscript. List Index property holds the position or index of the selected item in the list. We could then use this index with one minor change to access the group total. List index property always begins with 0.

 
by Dinesh Thakur Category: Array

Sometimes, array are referred to as tables or subscripted variables, all referenced by the same name. When we use a control array, the individual controls are referenced as optCoffee(0) or optCoffee(1). The same notation is used with variable arrays. Therefore, in an array for storing names we may have strName(0), strName(1), strName(2) and so on.

 
by Dinesh Thakur Category: Array

Consider the eight scout troops and their ticket sales. Now the groups are not numbered 1 to 8, but 101,103,110,115,121,123,130 and 145.

 
by Dinesh Thakur Category: Array

a) Arrays:

A variable array can contain a list of values, similar to list box or combo box. VB actually stores the list property of a list box or a combo box in an array.

 

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.