1 00:00:00,630 --> 00:00:01,750 Hello and welcome. 2 00:00:01,760 --> 00:00:08,370 In this lecture we are going to create a blank project with a form 3 00:00:11,100 --> 00:00:12,930 let's open up Visual Studio. 4 00:00:13,020 --> 00:00:22,140 So click on your starts and then look at the icon right click and go run as administrator to make sure 5 00:00:22,140 --> 00:00:25,620 you run it as administrator wherever possible. 6 00:00:25,710 --> 00:00:32,550 So once you got Visual Studio loaded up with click on the new project link you can either access it 7 00:00:32,610 --> 00:00:35,930 fly this way or you can go to the File menu. 8 00:00:35,940 --> 00:00:40,770 That's a file and there's a new project option. 9 00:00:40,770 --> 00:00:42,460 So you've got two ways to get to it. 10 00:00:42,930 --> 00:00:46,180 So click on the project. 11 00:00:46,890 --> 00:00:58,320 Give it a few minutes to load up and once it loads up it should give you a choice of templates to select 12 00:00:58,320 --> 00:01:00,330 from. 13 00:01:00,360 --> 00:01:02,730 All right make sure you got on the templates. 14 00:01:02,730 --> 00:01:13,370 You go visual see sharp selected and make sure you've got windows form applications selected Waze got 15 00:01:13,380 --> 00:01:19,560 name you need to keep the application a name so just going to get rid of the default name. 16 00:01:19,890 --> 00:01:28,260 I'm going to call mind my music 17 00:01:32,900 --> 00:01:37,010 player so feel free to call yours whatever you want. 18 00:01:37,100 --> 00:01:41,330 If you're using several words like I've done here have used three words. 19 00:01:41,330 --> 00:01:50,540 Make sure you leave no spaces between the words click okay and we'll wait for Visual Studio to build 20 00:01:50,540 --> 00:01:59,280 the form inclusive of the project so it will create the project and add a form for us. 21 00:01:59,330 --> 00:02:07,550 That's great so Visual Studio has created the project and has also given us a form so inside this form 22 00:02:07,610 --> 00:02:10,860 is where we will create our music player. 23 00:02:11,240 --> 00:02:17,480 So we need to change some properties or the forms will make sure the form is selected and on the left 24 00:02:17,480 --> 00:02:18,980 here is the properties. 25 00:02:19,190 --> 00:02:26,570 You can tell the form is selected because here is called form one which matches the name of the form. 26 00:02:27,360 --> 00:02:36,380 Okay so that form one here is just a text that title text is derived from this text property but we 27 00:02:36,380 --> 00:02:38,210 know we are in the right. 28 00:02:39,290 --> 00:02:39,910 We are. 29 00:02:40,010 --> 00:02:44,450 We've got the properties for the form because we know is form one. 30 00:02:44,460 --> 00:02:52,230 Anyway so let's change some properties first property let's change the name. 31 00:02:52,650 --> 00:02:56,960 So just I'm gonna call mine my 32 00:02:59,870 --> 00:03:00,740 music 33 00:03:04,190 --> 00:03:04,580 player. 34 00:03:04,580 --> 00:03:09,860 You can call yours anything you want maybe MP 3 player whatever doesn't really matter. 35 00:03:10,460 --> 00:03:14,710 So if I click enter you can see the name as reflected there. 36 00:03:14,720 --> 00:03:17,780 Another thing I want to do I want to give it a background colour. 37 00:03:19,470 --> 00:03:29,150 So this should is a property here called back colour so click on that and click on this dropdown click 38 00:03:29,150 --> 00:03:36,980 on web and just browse true the colours oh less black. 39 00:03:36,980 --> 00:03:38,240 I don't want black. 40 00:03:38,250 --> 00:03:44,930 So browse through the different colours you want to give you different list of colours. 41 00:03:45,320 --> 00:03:50,370 I am gonna go for lime green. 42 00:03:50,720 --> 00:03:52,120 I like that colour. 43 00:03:52,400 --> 00:03:55,130 Next property I want to change. 44 00:03:55,130 --> 00:04:02,340 I want the form to be centred so when the when you run the application I want it to be centred. 45 00:04:02,600 --> 00:04:07,800 When the applications start there's a property for that cold start position. 46 00:04:08,060 --> 00:04:14,360 So I'm going to click on that and the option I'm going to select centre screen I want it to be centred 47 00:04:14,480 --> 00:04:16,840 on the screen when it starts. 48 00:04:17,540 --> 00:04:22,440 At the moment you can resize the form various ways. 49 00:04:22,620 --> 00:04:23,610 OK. 50 00:04:24,050 --> 00:04:27,060 If you want just using does this. 51 00:04:27,500 --> 00:04:34,700 These blank squares you can use that to resize the form when the application is running. 52 00:04:34,700 --> 00:04:42,220 I don't want whoever's accessing the application to be able to resize to use it maximize button someone 53 00:04:42,230 --> 00:04:43,450 or deactivate that. 54 00:04:43,820 --> 00:04:51,050 So this maximise both in here as a property called maximize box at the moment is set to true but I'm 55 00:04:51,050 --> 00:04:53,930 going to disable it and set it to false. 56 00:04:53,950 --> 00:05:03,650 That means when the application is running they will not be able to use the maximise button. 57 00:05:03,650 --> 00:05:10,820 The reason we can resize the form using this little squares because this auto size property here is 58 00:05:10,820 --> 00:05:12,890 being set to force. 59 00:05:13,040 --> 00:05:18,440 So we're going to leave it like that so that we can resize the phone as we during the design phase. 60 00:05:19,460 --> 00:05:25,570 So currently this is the size of the form so you find drag that only you can notice the. 61 00:05:26,060 --> 00:05:31,610 You can see that the property size which so you can see the values he has changed. 62 00:05:31,610 --> 00:05:39,180 So if I drag this down that will increase the height and you see that value has changed as well. 63 00:05:39,200 --> 00:05:46,730 I want to manually set this but you know feel free to play around with whatever suits you. 64 00:05:46,730 --> 00:05:59,390 I'm gonna set this to 6 9 7 that's the width and I'm going to set the height to 2 9 7. 65 00:05:59,840 --> 00:06:01,990 I can change it later if I don't like it. 66 00:06:02,000 --> 00:06:02,560 So. 67 00:06:03,190 --> 00:06:12,050 Alright so this is the size also I don't want the user to be able to resize the form so I'm gonna change 68 00:06:12,050 --> 00:06:12,880 this property. 69 00:06:12,890 --> 00:06:15,710 This border style at the moment is saying sizeable. 70 00:06:15,920 --> 00:06:23,570 I'm going to change that to fixed dialogue that way when the application is running the form cannot 71 00:06:23,570 --> 00:06:27,470 be resized so that's it. 72 00:06:27,470 --> 00:06:33,700 I am happy with the design of the form so far so I'm just going to exit. 73 00:06:33,710 --> 00:06:36,770 Just gonna save that click on Save. 74 00:06:36,820 --> 00:06:41,210 I'll just say whatever was done and then that's it for this lecture. 75 00:06:41,240 --> 00:06:45,290 So in this lecture we have created the project. 76 00:06:45,440 --> 00:06:51,540 We have also changed some of the properties of the form. 77 00:06:51,560 --> 00:06:52,700 Thank you for watching. 78 00:06:52,700 --> 00:06:53,360 Bye for now.