Sedang Disiapkan

visual basic 3

create an interface that allows users to see movie information and play movie trailers. These movie trailers are password protected, read five passwords from a text file called [url removed, login to view] and check to see if the password entered by a user is one of the acceptable passwords.

project should:

Use Readline to read in the five passwords from the text file into an array and use this array to check to see if the password entered by the user is one of the five passwords in the [url removed, login to view] file.

Use FileGet to read the information on three movies from a structured file named [url removed, login to view] into an array of the structure defined below:

(Copy and paste this code including the mciSendString function and open command into the appropriate locations in the project.)

Public Structure movieInfo

<VBFixedString(30)> Public title As String

<VBFixedString(20)> Public star As String

Public duration As Integer

Public year As Integer

<VBFixedString(5)> Public rating As String

<VBFixedString(15)> Public movieFileName As String

End Structure

Public movies(2) As movieInfo

---------------------------------------------------------------------------------------------------------------------------------

Private Declare Function mciSendString Lib "winmm.dll" Alias "mciSendStringA" (ByVal _

lpstrCommand As String, ByVal lpstrReturnString As String, ByVal uReturnLength As _

Integer, ByVal hwndCallback As Integer) As Integer

---------------------------------------------------------------------------------------------------------------------------------

mciSendString("open " & filename & " type mpegvideo alias movie parent " _

& [url removed, login to view] & " style child", 0, 0, 0)

Note: Replace filename with the variable/property name that you are using.

Display a form that allows users to use command buttons to navigate and view information on any of the movies

there is no Previous button when showing the first movie, and there is no Next button when showing the last movie.

Allow users to click the Play button to play a movie trailer and click the Close button, if they wish to stop playing the trailer before it ends. Include two additional buttons - Pause and Resume

Include an Exit button that closes both forms

Notes: When the user types the password, black circles will appear instead of the actual characters.

Allow the user two chances to enter a valid password and then terminate the program.

Provide appropriate feedback to incorrect passwords.

Use a sub called DisplayMovie(index), to display the selected movie information. The index parameter represents which movie: 0 - 2.

the video plays in a PictureBox,

make the PictureBox size 768 x 432, which is the size of the movie.

Unlike myTunes program, the duration is an integral value, you will have to add the min. to your form.

use a simple For-Loop for specifically five passwords and three movies.

Be sure you run my program to see how I han

Kemahiran: Visual Basic

Lihat lebih lanjut: types resume, trailer text, style movie trailer, resume types, resume style, type resume, read index, additional information resume, movie rating, make trailer, visual interface, make loop, create video resume, code basic, amp visual basic, array form, check parent, star feedback, child video, form array, simple loop command, program basic string, structured form, visual basic amp, function movies

Tentang Majikan:
( 5 ulasan ) buffalo, United States

ID Projek: #1569102

Dianugerahkan kepada:

sherwinfer

Hired by the Employer

$30 USD dalam 5 hari
(7 Ulasan)
2.2