Three of the controls on the ToolBox let you access the computer’s file system. They are DriveListBox, DirListBox and FileListBox controls .
The Drive ListBox is used to display a list of drives available in your computer.When you place this control into the form and run the program,you will be able to select different drive from your computer.
The DirListBox is Directory ListBox is used to display the list of directories or folder in a selected drive.When you place this control into the form and run the program,you will be able to select different directories from a selected drive in your computer.
The FileListBox is used to display the list of files in a selected directory or folder.When you place this control into the fo form and run the program,you will be able to a list of files in a selected directory.
1. Start Visual Basic and pick “Standard Exe” from the list of new projects.
2. A form1 container is open.
3. Add DriveListBox,DirListBox and FileListBox from the toolbox.
4. Double click on Drive control.Code window is open. Write code here.
5. After you select Dir1 object from object drop down list.Write code here.
6.Press <f5> key to run the program and select the option to see what happens.
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
Scrollbar control in Visual Basic
The ScrollBar is a commonly used control, which enables the user to select a value ...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
Timer control in Visual Basic 6.0
The Timer control is used to fire an event at soecified intervals.The code you want ...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
Picture Box in Visual Basic 6.0
PictureBox control is the most powerful and complex items in the Visual Basic .The picture ...read more