ok i'm not so good in english but i'll try to explain as much as i can
1- open vb standard exe
2- creat on the form command botton, 3 textbox, 3 labels, 4 option bottons
make it look like this

2- choose lable1 from the right panal (properties) change the Caption from lable1 to First number...do the same witht he second lable and make it Second number..and do it witht he 3rd lable make it the result
3- now the text1 choose it from the right panal (properties) look for text and delete the word text1 from it..do it with the other 2 textbox...but in the 3rd one look for the Locked and make it True..because the 3rd textbox is the result and we wont people to edit it..it will be just to show the result not to writ any thing in it
4- now click on Command 1 botton and go to properties panlal change the Caption to The Result
5- select the Form it self and from the properties panal change the caption from Fourm1 to Calculator, also look for Border Style and make it fixed single so no one can change the calculator size.
5- now choose option1 from the prperties panal change the caption to +,the second option botton make it -, 3rd make it x, 4rs make it ÷,
so it should be like that

6- now double click on the result botton and type this code which i'll explain
- Code: Select all
Private Sub Command1_Click()
Dim A, B
A = Val(Text1.Text)
B = Val(Text2.Text)
If Option1.Value = True Then
Text3.Text = A + B
End If
If Option2.Value = True Then
Text3.Text = A - B
End If
If Option3.Value = True Then
Text3.Text = A * B
End If
If Option4.Value = True Then
Text3.Text = A / B
End If
End Sub
ok now to explain what the code mean
Dim A,B mean define variable A and variable B
A=Val(Text1.text) variable A is a numerical value and loctae in text1
B=Val(Text2.text) variable B is a numerical value and loctae in text2
If Option1.Value=True Then
Text3.Text=A + B
End if
its clear to us ...if we select the option 1 wich is to plus in text3 place show the result of A + B
and so on for the rest of the
so now what i need of people who read and learn and understand to be created...so i want them to make the same progam but change the option with comman botton when we click on it .it will do the calculate that we want..also make the 3 textbox to be one...i'll tell you a clue on who to do that ...make the 3 text box over each other so when we type the first number in the text1 and press on the botton for what we want to do like + or - or × or ÷ it hide the textbox1 and show the textbox2 in the same place then when we click the result botton it hide them both and show the textbox3...hope you get the idea and want to see you doing it right.
and when i understand more command about VB i'mm make tutorial for it and explain it to you








