The establishment of a simple calculator
Introduction
You are welcome in our first lesson, which is a creation of a simple calculator and the first steps and professionalism of it you can be a professional programmer.
First : the required stuff.
Required stuff is four buttons and three text box
Second : The method developed
You choose possible that you like and I did in the beginning, I
advise you to put it as shown in the picture
Third : the design of buttons and text boxes
First Click one click on the button or the text that you want to modify it and then go to the option box (properties) and go to the option text and change the name as you like, and I advise you to be as shown in the top image and font option can be adjusted on-line and shape as you like, and I I advise you to be Arial, 9.75pt, style = Bold and this line that I'm I prefer.
It can be adjusted on the window (form) as you like and if you want to put the icon I Annsahk Bhama Site Click here
But its outlook me (text box) You can make it in the Arial font, 11.25pt, style = Bold.
Fourth : Coded
First buttons On buttons will work almost every one a php
On the plus button: (text3.text = val (text1.text) + val (text2.text
On the minus button: (text3.text = val (text1.text) - val (text2.text
Beating button Code: (text3.text = val (text1.text) * val (text2.text
Kismet button Code: (text3.text = val (text1.text) / val (text2.text
As we can see similar code, including
The text box does not have any code
Fifth : the program experience
And you can try it by pressing the start button, as shown in the picture
So you have a simple calculator and thank you
Author: Mahmoud Ahmed
To communicate
facebook:
https://www.facebook.com/mahmoud.ahmad.980967
youtube:
https://www.youtube.com/channel/UCibGYnyJzB-Yy849HJuKjsA
لا يوجد تعليقات
أضف تعليق