How To Make A Basic Calculator With "Visual Basic" - Printable Version +- Post4VPS Forum | Free VPS Provider (https://post4vps.com) +-- Forum: Geek World (https://post4vps.com/Forum-Geek-World) +--- Forum: Scripting & Programming (https://post4vps.com/Forum-Scripting-Programming) +--- Thread: How To Make A Basic Calculator With "Visual Basic" (/Thread-How-To-Make-A-Basic-Calculator-With-Visual-Basic) |
How To Make A Basic Calculator With "Visual Basic" - youssefbasha - 01-26-2017 ..::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 Regards, YoUsSeFbAsHa RE: How To Make A Basic Calculator With "Visual Basic" - perry - 01-26-2017 stop talking in full caps. thank you. perry RE: How To Make A Basic Calculator With "Visual Basic" - youssefbasha - 01-26-2017 (01-26-2017, 08:40 AM)perryoo11 Wrote: stop talking in full caps. k i am very sorry thanks for editing it... RE: How To Make A Basic Calculator With "Visual Basic" - Anik - 01-27-2017 Moved to Scripting & Programming Board. As it is related to programming. I suggest you to add your codes to Code: [code] RE: How To Make A Basic Calculator With "Visual Basic" - Arkiven4 - 01-29-2017 Nice tutorial . But maybe in the next time must nice and tidy RE: How To Make A Basic Calculator With "Visual Basic" - humanpuff69 - 04-17-2017 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 RE: How To Make A Basic Calculator With "Visual Basic" - bookertie - 08-04-2017 I so easy use your calculator in Windwos or Copy the script of a Web site RE: How To Make A Basic Calculator With "Visual Basic" - YOuNeS_Dz - 10-25-2017 which app did you use to create this calculat ? download link not working... RE: How To Make A Basic Calculator With "Visual Basic" - youssefbasha - 10-26-2017 (10-25-2017, 07:50 AM)YOuNeS_Dz Wrote: which app did you use to create this calculat ? 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. RE: How To Make A Basic Calculator With "Visual Basic" - Honey - 10-30-2017 Not a bad tutorial, seems very simplistic. But shouldn't you post this in the tutorials section? |