1
00:00:01,900 --> 00:00:13,860
In this lecture we are going to be creating the form that will house how a calculator so let's create

2
00:00:13,920 --> 00:00:19,050
a new project that will also create a form for us.

3
00:00:19,440 --> 00:00:20,690
So you could too.

4
00:00:20,700 --> 00:00:29,120
You can either click on new project or you can go to file new projects and make sure you got a visual

5
00:00:29,120 --> 00:00:31,510
C sharp selected.

6
00:00:31,510 --> 00:00:39,650
Select Windows Forms application under the name for the application just call it calculator

7
00:00:45,460 --> 00:00:56,340
Cal cool later Cal cool later and click Okay.

8
00:00:56,600 --> 00:01:02,120
Visual Studio will go ahead and build the project with the form.

9
00:01:02,120 --> 00:01:04,130
So we've now got our form.

10
00:01:04,130 --> 00:01:09,960
So we just need to change some of the properties for the form to access the properties.

11
00:01:09,960 --> 00:01:16,370
You just click on the form and the property windows here or you can right click and go properties.

12
00:01:16,370 --> 00:01:23,420
So let's change the background color first like a black background.

13
00:01:23,430 --> 00:01:28,100
So screw here waistcoat appearance back color.

14
00:01:28,100 --> 00:01:35,440
Click on that and click on Webb and just click on black.

15
00:01:35,870 --> 00:01:39,190
Next and the form is currently same form one.

16
00:01:39,410 --> 00:01:41,660
I want to change that.

17
00:01:41,690 --> 00:01:45,330
To do that you change the tax so I'll just get rid of that.

18
00:01:45,350 --> 00:01:47,780
Form one typing calculator

19
00:01:52,820 --> 00:01:57,820
so if I click on that you see a calculator on that.

20
00:01:58,940 --> 00:02:04,590
You can resize the form using this little square brackets left squares here.

21
00:02:04,850 --> 00:02:10,990
Just drag it that wanted to expand to an increasing height just drag down.

22
00:02:11,430 --> 00:02:20,200
O K. I want to disable this option this maximize box so to do that.

23
00:02:20,390 --> 00:02:22,770
Just scroll here.

24
00:02:22,790 --> 00:02:27,690
This should be an option that says maximize box.

25
00:02:27,950 --> 00:02:31,600
So that's the option I am looking for.

26
00:02:31,600 --> 00:02:32,350
There you go.

27
00:02:32,390 --> 00:02:37,400
At the moment set to true which means you can maximize it.

28
00:02:37,400 --> 00:02:39,920
So I want to change that to force

29
00:02:42,940 --> 00:02:50,280
so let's see what the form looks like by clicking on START and just see.

30
00:02:50,290 --> 00:02:50,700
All right.

31
00:02:50,710 --> 00:02:55,250
So this is how big the form is at the moment.

32
00:02:55,270 --> 00:02:56,670
OK.

33
00:02:56,920 --> 00:03:02,680
So the moment we can resize that both you want to prevent resizing.

34
00:03:02,680 --> 00:03:07,450
You can also stop that via the property option.

35
00:03:07,450 --> 00:03:11,590
I also want to change the position of the phone.

36
00:03:12,220 --> 00:03:16,630
So when it starts it is positioned at the center.

37
00:03:17,230 --> 00:03:18,700
So the five click on start.

38
00:03:18,700 --> 00:03:24,700
Now you can see the waveform form is positioned on the moment.

39
00:03:24,700 --> 00:03:26,040
We can also resize it.

40
00:03:26,040 --> 00:03:28,940
So our one on one to block this.

41
00:03:29,050 --> 00:03:35,440
So that is not possible to resize the form once the application is running.

42
00:03:35,530 --> 00:03:43,000
So let's change the property to center the form so click on the form and there should be a property

43
00:03:43,900 --> 00:03:48,000
that will enable you start position.

44
00:03:48,130 --> 00:03:51,380
So if you click on the start position you can select.

45
00:03:51,400 --> 00:03:58,170
So I want the form to be on the center of the screen so I click on that.

46
00:03:58,240 --> 00:04:03,060
Also I want to fix the border so it's not recyclable.

47
00:04:03,070 --> 00:04:09,390
So to do that there's a property called form border style.

48
00:04:09,410 --> 00:04:13,030
At the moment it is sizable and we can resize it.

49
00:04:13,060 --> 00:04:14,590
So I want to change that.

50
00:04:15,040 --> 00:04:16,280
So click on that.

51
00:04:16,330 --> 00:04:23,020
And I want to set it all fixed dialogue so you can either say to fix our log or fixed tree.

52
00:04:23,180 --> 00:04:27,640
So I say to fixed dialogue and that way is not recyclable.

53
00:04:27,640 --> 00:04:37,450
So let me run the application so you can see the form and say OK you can see is now centered and you

54
00:04:37,450 --> 00:04:40,930
see there's no option for me to resize the form.

55
00:04:40,930 --> 00:04:42,400
So I've locked that.

56
00:04:42,400 --> 00:04:46,900
So excellent so I'm happy with the properties I have changed so far.

57
00:04:47,440 --> 00:04:52,930
If I do need to change more during the course I will do so for now.

58
00:04:52,930 --> 00:04:55,210
I think we are good to go.

59
00:04:55,210 --> 00:04:56,560
Thanks for watching.

60
00:04:56,560 --> 00:04:57,620
Take care.

61
00:04:57,670 --> 00:04:58,930
Bye for now.

62
00:04:58,930 --> 00:05:05,040
In the next few lectures we'll be designing the calculator inside the full.
