Computer Programming Visual Basic - PowerPoint PPT Presentation

1 / 9
About This Presentation
Title:

Computer Programming Visual Basic

Description:

Use 'mybrowser' as the name of the program (project) To save the program, click File Save All. Click 'Browse' to select the location. Click 'Look in' to select ' ... – PowerPoint PPT presentation

Number of Views:13
Avg rating:3.0/5.0
Slides: 10
Provided by: ytp
Category:

less

Transcript and Presenter's Notes

Title: Computer Programming Visual Basic


1
Computer Programming (Visual Basic)
  • Program 3 MyBrowser

2
MyBrowser Application
3
A. Create and Save the Application
  • Create a new application
  • Use mybrowser as the name of the program
    (project)
  • To save the program, click File ? Save All.
  • Click Browse to select the location
  • Click Look in to select Desktop
  • Create a new folder VB on Desktop
  • Save the program into Desktop\VB folder

4
B. Create the Form
  • Insert two Buttons, Button1 and Button2
  • Insert a Textbox, Textbox1
  • Insert a Label, Label1
  • Insert a Web Browser, webbrowser1
  • Insert a Windows Media Player, AxWindowsMediaPlay
    er1

5
C. Set the properties of the Control
  • Button1
  • Set the property Text to Go
  • Button2
  • Set the property Text to Play
  • Label1
  • Set the property Text to Address

6
D. Coding
  • Double click the Button1 and type in the
    following code at the cursor
  • Webbrowser1.navigate (Textbox1.Text)
  • Double-click the Button2 control and type in the
    following code at the cursor
  • AxWindowsMediaPlayer1.URL "w\music\song.mp3"

7
E. Execute
  • Click the debug icon execute the program
  • Try to type www.evangel.edu.hk into Textbox1 and
    then Click Go
  • Click Play to play the music.

8
F. Question
  • How can you change the code such that you can
    play another song?

9
G. Copy the Program to Drive X
  • Go to the Desktop.
  • Open the Folder VB.
  • Copy the folder mybrowser to
  • Drive X\VB
Write a Comment
User Comments (0)
About PowerShow.com