Simple Calculator in Visual Basic 6

shabbir's Avatar author of Simple Calculator in Visual Basic 6
This is an article on Simple Calculator in Visual Basic 6 in Visual Basic [VB].
Rated 5.00 By 1 users
A Simple Windows Like Calculator in Visual Basic 6. See the Screenshot.



Keyboard Shortcuts

Ascii code of '0' is '48' and is a short cut key to '0'
Ascii code of '1' is '49' and is a short cut key to '1'
Ascii code of '2' is '50' and is a short cut key to '2'
Ascii code of '3' is '51' and is a short cut key to '3'
Ascii code of '4' is '52' and is a short cut key to '4'
Ascii code of '5' is '53' and is a short cut key to '5'
Ascii code of '6' is '54' and is a short cut key to '6'
Ascii code of '7' is '55' and is a short cut key to '7'
Ascii code of '8' is '56' and is a short cut key to '8'
Ascii code of '9' is '57' and is a short cut key to '9'
Ascii code of 'Ctrl+O' is '15' and is a short cut key to '00'
Ascii code of '.' is and 46 is a short cut key to'.'
Ascii code of '+' is and 43 is a short cut key to'+'
Ascii code of '-' is and 45 is a short cut key to '-'
Ascii code of '*' is and 42 is a short cut key to '*'
Ascii code of '/' is and 47 is a short cut key to '/'
Ascii code of 'Ctrl+M' is 13 and is a short cut key to 'M+'
Ascii code of 'Ctrl+P' is 16 and is a short cut key to 'M-'
Ascii code of 'Ctrl+R' is 18 and is a short cut key to 'MR'
Ascii code of 'Ctrl+C' is 3 and is a short cut key to 'MC'
Ascii code of 'Esc' is 27 and is a short cut key to 'CE'
Ascii code of 'Backspace'is 8 and is a short cut key to 'C'
Ascii code of 'Ctrl+s' is 19 and is a short cut key to '+/-'
Ascii code of 'Enter' is "Not Required" and is a short cut key to '='

NOTE: The control array code is of my school days and is not very efficiently done but I guess the functionality of the program is quite good one.
Attached Files
File Type: zip Calculator.zip (14.8 KB, 201 views)
File Type: zip CalcWithoutExe.zip (9.1 KB, 65 views)
vikas rudani like this
0
MartinJose's Avatar, Join Date: Aug 2010
Contributor
I remember I used to make a calculator like this when I was having a VB class.
0
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
Quote:
Originally Posted by MartinJose View Post
I remember I used to make a calculator like this when I was having a VB class.
Same here. This code is of my school days,
0
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
It is not possible and you will need to use scripting languages like JavaScript
0
helloword's Avatar, Join Date: Aug 2010
Light Poster
oh ,this is i can
0
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
Nominate this article for Article of the month - Aug 2010 before September 15 2010.
0
sheppardalbert's Avatar, Join Date: Aug 2010
Light Poster
Something wrong with that calculator attachment... my WinZip (current copy) says it does not appear to be a valid archive... try downloading it again... I DID... 3 times and it failed to open.
0
sheppardalbert's Avatar, Join Date: Aug 2010
Light Poster
Does anyone have the code for a VB.Net 8 calculator... would there be much difference. Can you send the code? The zip file with this code on this page won't open.
Albert
0
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
Quote:
Originally Posted by sheppardalbert View Post
Something wrong with that calculator attachment... my WinZip (current copy) says it does not appear to be a valid archive... try downloading it again... I DID... 3 times and it failed to open.
Re-downloaded it once again and it works fine for me. I also tested from a second PC and it works as expected.
0
sheppardalbert's Avatar, Join Date: Aug 2010
Light Poster
No... It still does NOT open... "Cannot open file: It does not appear to be a valid archive. If you downloaded this file, try downloading it again.

I tried it before multiple times and again today multiple times; and I tried it on both my desktope and my laptop... the zip does NOT open...

I have the latests version of WinZip Pro and Windows 7 Ultimate... and I don't have problems zipping and opening files except with this one.