In this lecture we are going to be creating the form that will house how a calculator so let's create
a new project that will also create a form for us.
So you could too.
You can either click on new project or you can go to file new projects and make sure you got a visual
C sharp selected.
Select Windows Forms application under the name for the application just call it calculator
Cal cool later Cal cool later and click Okay.
Visual Studio will go ahead and build the project with the form.
So we've now got our form.
So we just need to change some of the properties for the form to access the properties.
You just click on the form and the property windows here or you can right click and go properties.
So let's change the background color first like a black background.
So screw here waistcoat appearance back color.
Click on that and click on Webb and just click on black.
Next and the form is currently same form one.
I want to change that.
To do that you change the tax so I'll just get rid of that.
Form one typing calculator
so if I click on that you see a calculator on that.
You can resize the form using this little square brackets left squares here.
Just drag it that wanted to expand to an increasing height just drag down.
O K. I want to disable this option this maximize box so to do that.
Just scroll here.
This should be an option that says maximize box.
So that's the option I am looking for.
There you go.
At the moment set to true which means you can maximize it.
So I want to change that to force
so let's see what the form looks like by clicking on START and just see.
All right.
So this is how big the form is at the moment.
OK.
So the moment we can resize that both you want to prevent resizing.
You can also stop that via the property option.
I also want to change the position of the phone.
So when it starts it is positioned at the center.
So the five click on start.
Now you can see the waveform form is positioned on the moment.
We can also resize it.
So our one on one to block this.
So that is not possible to resize the form once the application is running.
So let's change the property to center the form so click on the form and there should be a property
that will enable you start position.
So if you click on the start position you can select.
So I want the form to be on the center of the screen so I click on that.
Also I want to fix the border so it's not recyclable.
So to do that there's a property called form border style.
At the moment it is sizable and we can resize it.
So I want to change that.
So click on that.
And I want to set it all fixed dialogue so you can either say to fix our log or fixed tree.
So I say to fixed dialogue and that way is not recyclable.
So let me run the application so you can see the form and say OK you can see is now centered and you
see there's no option for me to resize the form.
So I've locked that.
So excellent so I'm happy with the properties I have changed so far.
If I do need to change more during the course I will do so for now.
I think we are good to go.
Thanks for watching.
Take care.
Bye for now.
In the next few lectures we'll be designing the calculator inside the full.