Hello and welcome.
In this lecture we are going to add the Window Media Player to the project form.
So to add a Windows Media Player to the form we need to click on the tool box.
So within the tool box click on the dialogues.
Okay so there's no windows media player.
Okay so we need to do we need to add it.
So right click and select choose items and we just wait for the dialog box to open is to load in the
items.
There you go.
Let's give it a few minutes to load up all the items
while it's loaded.
Let's check to see if the item we want is already there.
So click on com components
see.
Give it time to open up.
And from here we need to scroll down and look for Windows Media Player so check the box and click ok
I can see the Windows Media Player has now been added so just drag it and drop it on the form give it
time sometimes it might take a little while to.
OK so now let's just resize it a little bit.
I want to stretch it to the size of the phone book and just stretch it back OK.
All right.
So make sure yours just fits the screen the size of a form and.
OK.
So what I'm going to do next I'm going to see this in a property I like to change.
This is the name the default name for the Windows Media Player.
I want to change you to more friendly names so I'm going to Where's got the name here in the design.
I'm going to change that.
So you just click on it and I'm going to change that to
just say
player
OK for simplicity.
So if I click on it now it should say this is your original name but you should also say play here.
So when we're going to write the code we're going to reference it using this name player rather than
that long name there.
Let's add another control to our form.
So go to the tool box and click on common controls and this had a text box so just drag the text box
and we'll drop it somewhere here OK.
And we'll need to do I just need to move it in here
OK
OK.
So this Lulu there's a little icon there and just click on that and select multi line so that way we
can you know play around with the control expanded a little bit the way we want.
So I just wanted to cover up this default player button there.
OK.
And I think I'm happy with that.
This eventually will display the path of the music that is playing.
Okay.
That's the purpose of this.
I'm not going to change any properties within the text box.
The new text both were added.
So I'll just leave it as it is because I only wanted to perform a very simple rule just to display the
path of the music that's playing.
So when we when we browse to the file we want to play it.
If the path will be displayed we'll also be using the text box to reference some parts of our code as
well.
For now we know I'm going to stop this lecture here and in the next lecture we'll add some buttons to
our form.
Thank you so much for watching.
Bye for now.