The ComboBox is used to display a list incompact form.And so this control consume less space and still can have all the elements of list in it. List elements can be added both at design time and at run time.
1.Open Visual Basic 6.0 and create a new Standard EXE Project.
2.From Standard EXE project Dialogbox choose Standard EXE form.
3. Add one Combo Box and Command Button from toolbox on the form.
4.Change the caption of command button.
5.Then add code in code window.Following is an example to add item to a combo box. The code is typed in the Form_Load event.
6.Use the File menu to save your work as Main.frm and (your intitials)Project1.vbp
7.Use <f5> key to run the program.
TreeView Control in Visual Basic 6.0
The TreeView control display a hirearchical display node object.Each node consist of label ,optional bitmap.You ...read more
DriveListBox,DirListBox and FileListBox in Visual Basic 6.0
Three of the controls on the ToolBox let you access the computer's file system. They ...read more
Pointer Control in Visual Basic 6.0
Pointer control is used to resize and position a control. When you're drawing controls on ...read more
OLE control in Visual Basic 6.0
Insertable Objects (like the Excel Worksheet object; with a list of the employees, or a ...read more
ToolTip in Visual Basic 6.0
A tool-tip is a small box that is displayed at the mouse location when overing ...read more
Frame,Image and Picture Control in Visual Basic 6.0
A frame is an object that provide a visual an functional container for controls.it is ...read more