Hello and welcome.
In this lecture we are going to create a blank project with a form
let's open up Visual Studio.
So click on your starts and then look at the icon right click and go run as administrator to make sure
you run it as administrator wherever possible.
So once you got Visual Studio loaded up with click on the new project link you can either access it
fly this way or you can go to the File menu.
That's a file and there's a new project option.
So you've got two ways to get to it.
So click on the project.
Give it a few minutes to load up and once it loads up it should give you a choice of templates to select
from.
All right make sure you got on the templates.
You go visual see sharp selected and make sure you've got windows form applications selected Waze got
name you need to keep the application a name so just going to get rid of the default name.
I'm going to call mind my music
player so feel free to call yours whatever you want.
If you're using several words like I've done here have used three words.
Make sure you leave no spaces between the words click okay and we'll wait for Visual Studio to build
the form inclusive of the project so it will create the project and add a form for us.
That's great so Visual Studio has created the project and has also given us a form so inside this form
is where we will create our music player.
So we need to change some properties or the forms will make sure the form is selected and on the left
here is the properties.
You can tell the form is selected because here is called form one which matches the name of the form.
Okay so that form one here is just a text that title text is derived from this text property but we
know we are in the right.
We are.
We've got the properties for the form because we know is form one.
Anyway so let's change some properties first property let's change the name.
So just I'm gonna call mine my
music
player.
You can call yours anything you want maybe MP 3 player whatever doesn't really matter.
So if I click enter you can see the name as reflected there.
Another thing I want to do I want to give it a background colour.
So this should is a property here called back colour so click on that and click on this dropdown click
on web and just browse true the colours oh less black.
I don't want black.
So browse through the different colours you want to give you different list of colours.
I am gonna go for lime green.
I like that colour.
Next property I want to change.
I want the form to be centred so when the when you run the application I want it to be centred.
When the applications start there's a property for that cold start position.
So I'm going to click on that and the option I'm going to select centre screen I want it to be centred
on the screen when it starts.
At the moment you can resize the form various ways.
OK.
If you want just using does this.
These blank squares you can use that to resize the form when the application is running.
I don't want whoever's accessing the application to be able to resize to use it maximize button someone
or deactivate that.
So this maximise both in here as a property called maximize box at the moment is set to true but I'm
going to disable it and set it to false.
That means when the application is running they will not be able to use the maximise button.
The reason we can resize the form using this little squares because this auto size property here is
being set to force.
So we're going to leave it like that so that we can resize the phone as we during the design phase.
So currently this is the size of the form so you find drag that only you can notice the.
You can see that the property size which so you can see the values he has changed.
So if I drag this down that will increase the height and you see that value has changed as well.
I want to manually set this but you know feel free to play around with whatever suits you.
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.
I can change it later if I don't like it.
So.
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
this property.
This border style at the moment is saying sizeable.
I'm going to change that to fixed dialogue that way when the application is running the form cannot
be resized so that's it.
I am happy with the design of the form so far so I'm just going to exit.
Just gonna save that click on Save.
I'll just say whatever was done and then that's it for this lecture.
So in this lecture we have created the project.
We have also changed some of the properties of the form.
Thank you for watching.
Bye for now.