document2

25
[email protected] Electro-Team Interesting Education

Upload: it-big-dig

Post on 17-Aug-2015

7 views

Category:

Documents


0 download

TRANSCRIPT

[email protected]

Electro-TeamInteresting Education

Calculator

Solve the problem

Answer

Integrated Development Environment

Dialog Box

IDE

Add another Form

Select Windows Form

Open solution explorer

Double click on Form1

Open Toolbox and add new Button

Double click on button1 and type yellow phrases.

This code hide Form1 & display Form2.

Delete button1 from Form1

X=758 Y=516

Control Objects Location

Add 2 Labels & 2 Buttons.Click on any empty area inside Form1 and select Size property.

Dimensions of Form1 = (758,516)

Location = X , Y = 196,48

Size = 74,24

Control Objects Location

To center Label1 on the Form1X-Dimension

758/2 = 379

74/2 = 37

379 - 37=342 Pixel

X = 342 Pixel

Label1

x

Y

X distance of Form1=758Y distance of Form1=516

X distance of Label1= 74 Y distance of Label1= 24

Let: X distance of Label1= 0Let: Y distance of Label1= 0

Change Y-Dimension ?

Location =342,48

Control Objects Location

Control Objects Location

Click Label1 and hold ctrl button in your keyboard then select the rest of objectsMenu bar \ Format \ Align \ CentersAll objects will have X- axis value equal to x-axis value of first selected object (Label1)

End Of Part 3

Produced by

Electro-Team