arrow_upward

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How To Make A Basic Calculator With "Visual Basic"
#1
..::Tutorial::..
Hello Guys,
      I have just made a "Basic Calculator" That Can Calculate +,-,*,/ And I Wanna To Share It With You... 
Requirements:
First Put 3 Labels.
Second Put 3 Textboxes Under Them And put spaces between them.
Third Add 4 Buttons And 1 if you want for Exit.
...........................................................................
Change the property "Text" Of the label1 To Number 1 , the second label (label2) To Number 2 and the third label (label3) To Result.
Put 2 Other Labels (label4,label5) 
And put 1 between textbox1 and textbox2 and the another one put it between textbox 2 and textbox3 Then Change the property Text of label4 to   (Nothing) and label5 to = .
Now Change The 4 Buttons Text (button1 to +),(button2 to -),(button3 to /) and (button4 to *).
And if you added button 5 make it Exit.
.....................................................................
Now Lets Code,
Call Button1 and the event Click
And type
Textbox3.text = Val(textbox1.text) + Val(Textbox2.text)
Label4.text = "+"
Call Button2 and the event Click

And type
Textbox3.text = Val(textbox1.text) - Val(Textbox2.text)
Label4.text = "-"
Call Button3 and the event Click

And type

Textbox3.text = Val(textbox1.text) / Val(Textbox2.text)
Label4.text = "/"
Call Button4 and the event Click

And type

Textbox3.text = Val(textbox1.text) * Val(Textbox2.text)
Label4.text = "*"
...............................................................
Call Button5 If you made it and set code to
End
Picture Of Codes: https://imgur.com/afxsOA9
Picture Of Form: https://imgur.com/U71iixu
App Link: https://www.solidfiles.com/v/Wdy5RKpG4qe5p
......................................................
Thats All, 
Have A Nice Day! & Thanks For Reading if that helped you don't forget to give me a +Rep Wink
Regards,
YoUsSeFbAsHa
#2
stop talking in full caps.
thank you.
perry
#3
(01-26-2017, 08:40 AM)perryoo11 Wrote: stop talking in full caps.
thank you.
perry

k i am very sorry thanks for editing it...
#4
Moved to Scripting & Programming Board. As it is related to programming. I suggest you to add your codes to
[code]
[/code]
#5
Nice tutorial . But maybe in the next time must nice and tidy
Sorry for My Bad English
I am Web Developer || Python, NodeJs, C# Programer
My Fiverr Profile
#6
great tutorial . i used to make a calculator in visual basic before and it is great to see another people sharing visual basic code and tutorial
i appreciate it as a visual basic coder

continue your great work
hope it useful
Terminal
humanpuff69@FPAX:~$ Thanks To Shadow Hosting And Post4VPS for VPS 5
#7
I  so easy use your calculator in Windwos or Copy the script of a Web site
#8
which app did you use to create this calculat ?
download link not working...

Thanks to @Post4VPS & @Racknerd for Providing thier : VPS 2

#9
(10-25-2017, 07:50 AM)YOuNeS_Dz Wrote: which app did you use to create this calculat ?
download link not working...

Visual Basic App
I think that solid files closed that's why its not working, anyways i will check if the app is still in my documents or not.
#10
Not a bad tutorial, seems very simplistic. But shouldn't you post this in the tutorials section?
Thanks to ShadowHosting and Post4VPS for my VPS 5!



person_pin_circle Users browsing this thread: 1 Guest(s)
Sponsors: VirMach - Host4Fun - CubeData - Evolution-Host - HostDare - Hyper Expert - Shadow Hosting - Bladenode - Hostlease - RackNerd - ReadyDedis - Limitless Hosting