How to make a calculator in Visual Basic 2010 Part II - • 14. Visual Basic Adva...
Пікірлер: 72
@franx49126 жыл бұрын
Thank you for posting this video, I'm a 10th grader and this really helped me a lot! Most videos out there were confusing but this was easy!
@duodot14 жыл бұрын
Nevermind, i fixed it! i just removed all the Val()'s like Form1.TextBox1.Text & Tall.Text instead of Val(Form1.TextBox1.Text & Tall.Text) can't read value of something with decimal point even though its a Unicode character? WTF? anyway, works like a charm! love you! subscribed!
@itsaji14 жыл бұрын
@duodot Thanks .. I'm glad that you figured it out .. This is the way we learn .. all the best.
@sillyme25987 жыл бұрын
THANKS MAN! YOU JUST SAVED MY LIFE!
@breezyleaf11 жыл бұрын
Nice coding!!! And thank you for having normal music :D
@itsaji14 жыл бұрын
@duodot You need a variable "flag" (type boolean). whose initial value is FALSE. When ever the user press the decimal button check the flag, If it is FALSE then add a decimal point to the number and set the flag as TRUE (as long as the flag is true no more decimal points are allowed in same number). Set the flag back to FALSE when user clicks any operators "+,=,*,/" or C, CE so he can enter second number with decimal point.
@ShayAxelod2214 жыл бұрын
@ShayAxelod22 dude... I REALY LOVE YOUR WORK..... MAKE MORE VIDEOS!!! subscribed! keep it up!
@duodot14 жыл бұрын
I followed your instructions step by step exactly as you demonstrated, i just changed some of the subroutine and variable names, but still the decimal point doesn't work properly... i can set it, but once i click another button to set the first decimal it just removes the decimal point and nothing else happens... do you have any idea why this happens? and do you know of a fix? I've checked and checked again for bugs, errors, and mishaps, but its flawless...still it doesn't work...
@celinetoledo848011 жыл бұрын
AMAZING!!
@itsaji14 жыл бұрын
@deans1243 Plz make sure that you are using "Microsoft Visual Basic 2010 Express" , form your code it appears that you are using "C# editor".
@denvercress602512 жыл бұрын
do you have a video add 4 test scores and get the average total of scores. i sure would appreciate it Thanks
@DanShash11 жыл бұрын
I have a question. Why did you make a sub in the module for the variable "arithmetic" just to make the textbox clear when you press the button. Couldn't you have done this under the sub buttonclick: textbox1.text = "". so when they click the button the textbox clears. Please answer asap. I don't understand the purpose of a module.
@deans124314 жыл бұрын
whenever i double click anything to go to the code it doesnt look anything like yours but nomatter what i click the code is always the same?? pleas help
@duodot14 жыл бұрын
@itsaji This does only prevent me from inserting multiple decimal points in the same number, and that works, but that is unfortunately not solving my problem... The problem is that once the point is inserted and when i then push any number it removes the point and i have to push the same button again in order to for it to show up... it seems that it reads the textbox1.text as integer and denies me to use decimals, but if i change oper to string and value1 to decimal it changes nothing...
@Bedoelawad10 жыл бұрын
Thank You
@EmmanuelAbbah11 жыл бұрын
@ItsAji could you plz tell me hw to make 000 and 0000 appear i.e when ever you need one hundred, u click on 1 and then on the 000 button. Thanks for your tutorials it really helped
@MinecraftDude0712 жыл бұрын
@ItsAji Why does the multiply button not working? I've copied and double checked everything, and for example, if I type 2 x 2, it would just be 2.
@TheWordBecameFleshJ11412 жыл бұрын
my vb express 2010 doesn't show the toolbar on the left with all buttons and other things. how do I fix it?
@itsaji14 жыл бұрын
@MrBejta Goto module ShowValue() 06:04 in the video and change the statement like (added "Val" function) Form1.TextBox1.Text = Val(Form1.TextBox1.Text & Button.Text)
@highkea11 жыл бұрын
apparently Error 1 "Type character '&' does not match declared data type 'System.Windows.Forms.TextBox'." so what should I do
@anssmuhammad166711 жыл бұрын
I subbed liked and favourited :)
@itsaji13 жыл бұрын
@toferk7 : Plz check the next video # 14. I have added C,CE and a few more function to this calculator .. thanks !
@KeenanLongboard12 жыл бұрын
thanks!
@toferk713 жыл бұрын
@itsaji tnx !
@macaranasadrian13 жыл бұрын
@itsAji Hi dude, I have a question. Can you comment here the formula on how to continously operate? What I mean is this. Example 4+5+7+2-3-56*5/4 = Help please.
@skynicht11 жыл бұрын
can someone help me my "."is not getting registered in the calculation so when i do 1.5 + 3.5 i get 4 instead of 5
@knsrulz9 жыл бұрын
the form.oper , what is oper in 2013 vb ?
@dekisan201013 жыл бұрын
I was create this calculator but comand :Double is no supported "X" Pleace Help
@oAnurag13 жыл бұрын
@itsaji You seem to good keeping in my the interface.
@OverG8813 жыл бұрын
Nice! But can you tell me what will happen if I click "." more than once? :)
@itsaji14 жыл бұрын
@fiksyman123 Watch this video from 05:05 where it shows how to call and define showValue subroutine.
@etheryamari542011 жыл бұрын
Choose to loose the music or to loose the audience! you defeated the purpose of the help you are trying to give!
@toferk713 жыл бұрын
i think it should have a "clean" buttun , its the only thing missing... and TNX
@tsegahungirma20619 жыл бұрын
thanks to this tutorial amazing but i have two question first question how to clear or delete the number second question is for example 12.5..... so why this dote use tell how to remove dote after number pleas help me
@uitje113 жыл бұрын
Hey, awesome tutorial, but I can't divide! Please help!
@cssgrabben13 жыл бұрын
Hello the decimal don't work! please help me
@denricklaborada13 жыл бұрын
what is the symbol in 10:58 ???
@growwithdesign13 жыл бұрын
which song is this ? please give me a link.also loved your tutorial.thanks alot.
@liamreal10173 жыл бұрын
Still looking for it bro, its been 2 years for me
@duodot14 жыл бұрын
... and there doesn't seem to be any logical explanation... i think the problem is somewhere in all the other code i have that messes with the module1 or somethin, but i have removed all unnecessary variables and code...
@morshedulhaque27006 жыл бұрын
Thanks
@liamreal10173 жыл бұрын
I gotchu
@filmsbyjamie10 жыл бұрын
Love the music - what is it ?
@liamreal10173 жыл бұрын
I'm trying to find out bro
@stanezzz11 жыл бұрын
did u declare it as single or double ?
@sillyme25987 жыл бұрын
I think it's double
@kalubelliol973310 жыл бұрын
I love you tutorial. But when I add 10.5 + 2.5 the result is 12. so what's the bug? kalubelliol
@dite23110 жыл бұрын
i have the same problem too
@itsaji14 жыл бұрын
@asafking123 Hi .. You can download the source code from my website (ItsAji.com). I just uploaded it in the Visual Basic section. The project files are in Visual Basic 2010 format.
@Sep.R8 жыл бұрын
can I have the code or link to download it please?
@annt.77858 жыл бұрын
The code is textbox1.text
@A_dos11 жыл бұрын
sir code link please?
@TheMrkyy12 жыл бұрын
Can you link to the song
@liamreal10173 жыл бұрын
I feel you fam
@billalfdaili321712 жыл бұрын
thanks for the video 10.5 + 2 = 12 i work in vb 2008 . don't work why
@hiddehekers11 жыл бұрын
my point doesnt work.. 10,5x2=20 is shown
@dite23110 жыл бұрын
i have the same problem too
@warchateck12 жыл бұрын
code plzzzzzzzzzzzz.
@turtwig99612 жыл бұрын
song name???
@liamreal10173 жыл бұрын
Idk what it is but its fire af
@NeutronHex13 жыл бұрын
@itsaji c is a much more powerful language
@denricklaborada13 жыл бұрын
Make your textbox read only so that you cannot type a word there... :D
@IMusic199713 жыл бұрын
Same problem
@billalfdaili321711 жыл бұрын
stanezzz it's work thanks
@TheFsfasf12 жыл бұрын
Great video, but some commentary wouldn't damage :p
@yotoprules936110 жыл бұрын
this is thw worse calculator i have ever used. it doesnt work. i add 5 and it adds like 80
@yotoprules936110 жыл бұрын
nvm it is just if i keep clicking it. very buggy still.