Part one of setting up a pretty decent calculator in Visual Basic (Actually functions much like the Windows calculator)
25 thoughts on “Creating a Calculator in Visual Basic Part One”
Leave a Reply to whicketywack Cancel reply
You must be logged in to post a comment.
@MrPimpoen Its on the more info bit already
@aimanyusoff930 Sorry, I haven’t got a copy of VB6, that’s been out of date for 7 years!
can you post a video on how to make a bmi calculator for visual basic 6. 0 plz. . thank you. .
@TTTTTT272 How about using a click event for the first number, and a double click event for the second number? That way when the button is clicked once it shows one number, and when clicked twice it shows the other. Hoe that helped 🙂
i dont speak english so well, so can you write the cmd (name) codes for the following buttons: +, -, /, =, _Btw: nice tut!
I love your voice!
lol me too
thanks this is helping me a lot 🙂
OMG i could listen to you talk forever. . . xx
@TTTTTT272 If you check down on the comments on one of the 3 calculator videos I’ve posted, someone’s already posted a solution to your backspace problem, you’ll just have to dig around. With your second problem, you’ll have to assign an ‘If AND If’ or dual Case statement so that the buttons have to be used in tandem. Although it’s beyond me why someone’s created such an artificial and contrived project for you!
Thank you. . . I have two questions. . . 1) is there a code for a backward button to remove the last entry, also I have a project and only allowed 5 buttons for the numbers. . . therefore each button would have to have two number values, I have created a button like that one a keyboard a Shift button. . . is there a code that will allow when the shift key is activated that it will allow the second number assigned to the button. . . . . Much appreciated Thanks
@invinciblecp Change the maxlength property in the code.
Is that Rob Rydon Narrating lol
c = delete 1 thingwhat = delete evrything
Thanks for tutorial.
nice calculations haha
you must click on the text box where all the numbers appear and then go over to the options on the right side of your screen and scroll through until you see length. change the length to 16. i also had a problem where my length was specified at 14 but the code surpassed this causing it to add more digits. if this first method does not work please get back to me and i can copy the code here
ohh. . crap i have to make a calculator for a project before midterms. . . .
how do u get the calculator to only accept 16 digits in the display.
Superb!!
yesss 999999999999999999999999999/5 subb ive been lookin for this for weeks
According to Vintage Technology, both buttons are a way to clear or cancel an entry. The C button will clear all input to the calculator. The CE button clears the most recent entry, so if you make a mistake in a long computation, you don’t need to start all over again. for the code, i don’t know it either (yet)
My instructor wants us to add both C and CE commands in our calculator? i was wondering what’s the difference between them?and whats the code for the command buttons?
I’ve been looking for something like this about a week. . . thx for the upload 8).
u know why u getting “0” in ur textbox??it is because u have entered in the properties of the textbox in the “TEXT” 0if u remove the 0 from the TEXT then it wont show up anymore