<Previous Lesson> <<Home>> < Next Lesson>
In lesson 20, we have created an audio player. Now, by making further modifications, you can transform the audio player into a picture viewer. This viewer will be created in such a way that it could search for all types of graphics files in your drives and displays them in a picture frame.
Similar to the previous project, in this project, you need to insert a ComboBox, a DriveListBox, a DirListBox, a TextBox and a FileListBox into your form. I Shall briefly explain again the function of each of the above controls.
|
|
|
Relevant code must be written to coordinate all the above controls so that the application can work properly. The program should flow in the following logical way:
Step 1: The user chooses the type of files he wants to play.
Step2:The user selects the drive that might contains the relevant graphic files.
Step 3:The user looks into directories and subdirectories for the files specified in step1. The files should be displayed in the FileListBox.
Step 4: The user selects the files from the FileListBox and click the Show button.
Step 5: The user clicks on Exit button to end the application.
The Interface

|
The Code Private Sub Form_Load()
End Sub Private Sub Combo1_Change()
End Sub 'Specific the types
of files to load
End Sub 'Changing Drives Private Sub Drive1_Change()
End Sub ---------> Continue on the right
| Private Sub File1_Click()
End Sub
End Sub
|
<Previous Lesson> <<Home>> < Next Lesson>
Copyright ® 2008 Dr.Liew Voon Kiong . All rights reserved |Contact: admin@vbtutor.net