1 00:00:00,750 --> 00:00:01,660 Hello and welcome. 2 00:00:01,680 --> 00:00:11,620 In this lecture we are going to add the Window Media Player to the project form. 3 00:00:11,670 --> 00:00:18,210 So to add a Windows Media Player to the form we need to click on the tool box. 4 00:00:18,210 --> 00:00:23,550 So within the tool box click on the dialogues. 5 00:00:23,620 --> 00:00:26,630 Okay so there's no windows media player. 6 00:00:26,700 --> 00:00:30,120 Okay so we need to do we need to add it. 7 00:00:30,630 --> 00:00:41,640 So right click and select choose items and we just wait for the dialog box to open is to load in the 8 00:00:41,640 --> 00:00:42,810 items. 9 00:00:42,820 --> 00:00:43,230 There you go. 10 00:00:43,240 --> 00:00:47,040 Let's give it a few minutes to load up all the items 11 00:00:49,800 --> 00:00:50,670 while it's loaded. 12 00:00:50,670 --> 00:00:53,590 Let's check to see if the item we want is already there. 13 00:00:53,910 --> 00:00:56,430 So click on com components 14 00:00:59,070 --> 00:00:59,630 see. 15 00:00:59,640 --> 00:01:02,790 Give it time to open up. 16 00:01:03,210 --> 00:01:11,540 And from here we need to scroll down and look for Windows Media Player so check the box and click ok 17 00:01:13,050 --> 00:01:21,030 I can see the Windows Media Player has now been added so just drag it and drop it on the form give it 18 00:01:21,030 --> 00:01:23,880 time sometimes it might take a little while to. 19 00:01:24,420 --> 00:01:28,770 OK so now let's just resize it a little bit. 20 00:01:28,770 --> 00:01:44,940 I want to stretch it to the size of the phone book and just stretch it back OK. 21 00:01:45,120 --> 00:01:45,510 All right. 22 00:01:45,540 --> 00:01:51,870 So make sure yours just fits the screen the size of a form and. 23 00:01:51,980 --> 00:01:52,550 OK. 24 00:01:52,620 --> 00:01:57,880 So what I'm going to do next I'm going to see this in a property I like to change. 25 00:01:57,900 --> 00:02:02,010 This is the name the default name for the Windows Media Player. 26 00:02:02,610 --> 00:02:10,550 I want to change you to more friendly names so I'm going to Where's got the name here in the design. 27 00:02:10,620 --> 00:02:13,880 I'm going to change that. 28 00:02:13,920 --> 00:02:19,770 So you just click on it and I'm going to change that to 29 00:02:22,230 --> 00:02:22,950 just say 30 00:02:28,110 --> 00:02:28,520 player 31 00:02:32,110 --> 00:02:34,610 OK for simplicity. 32 00:02:34,610 --> 00:02:40,830 So if I click on it now it should say this is your original name but you should also say play here. 33 00:02:40,860 --> 00:02:47,070 So when we're going to write the code we're going to reference it using this name player rather than 34 00:02:47,070 --> 00:02:50,910 that long name there. 35 00:02:51,030 --> 00:02:56,600 Let's add another control to our form. 36 00:02:57,090 --> 00:03:10,640 So go to the tool box and click on common controls and this had a text box so just drag the text box 37 00:03:10,990 --> 00:03:14,730 and we'll drop it somewhere here OK. 38 00:03:14,900 --> 00:03:18,310 And we'll need to do I just need to move it in here 39 00:03:22,160 --> 00:03:22,520 OK 40 00:03:27,820 --> 00:03:28,310 OK. 41 00:03:29,550 --> 00:03:37,800 So this Lulu there's a little icon there and just click on that and select multi line so that way we 42 00:03:37,800 --> 00:03:46,080 can you know play around with the control expanded a little bit the way we want. 43 00:03:46,120 --> 00:03:52,630 So I just wanted to cover up this default player button there. 44 00:03:53,430 --> 00:03:54,210 OK. 45 00:03:54,220 --> 00:03:57,110 And I think I'm happy with that. 46 00:03:57,210 --> 00:04:04,230 This eventually will display the path of the music that is playing. 47 00:04:04,410 --> 00:04:04,750 Okay. 48 00:04:04,770 --> 00:04:07,990 That's the purpose of this. 49 00:04:08,370 --> 00:04:14,450 I'm not going to change any properties within the text box. 50 00:04:14,460 --> 00:04:16,260 The new text both were added. 51 00:04:16,260 --> 00:04:22,380 So I'll just leave it as it is because I only wanted to perform a very simple rule just to display the 52 00:04:22,380 --> 00:04:26,570 path of the music that's playing. 53 00:04:26,940 --> 00:04:30,730 So when we when we browse to the file we want to play it. 54 00:04:30,840 --> 00:04:39,390 If the path will be displayed we'll also be using the text box to reference some parts of our code as 55 00:04:39,390 --> 00:04:39,630 well. 56 00:04:39,630 --> 00:04:47,010 For now we know I'm going to stop this lecture here and in the next lecture we'll add some buttons to 57 00:04:47,040 --> 00:04:48,240 our form. 58 00:04:48,240 --> 00:04:50,040 Thank you so much for watching. 59 00:04:50,040 --> 00:04:50,600 Bye for now.