Visual Basic 2010 Tutorial: How to make a simple calculator with buttons
Uploader Comments (llPcErall)
All Comments (58)
-
i tryed to reply to ur msg but it wont let me just wanted to say thx
-
how do you get the tab with the settings ?
-
@NickkRagz the code for exponents is X^X, ^ is Shift 6, the code for square roots is X^(1/2)
-
I am new to VB. In the above calculator, how can I make it so that it clears when a new operation is made? example: 3+5=8; then 6/2=3. Right now I have to clear manually between operations.
-
Is this work for vb 2008?
-
how do you get the settings.first?
-
divide isn't working the code for it is Label1.Text = "/" My.Settings.First = TextBox1.Text TextBox1.Text = "" My.Settings.Save()
that's correct code right?
-
I made my own calculator a diferent way but that doesnt matter, can someone help me with the code for calculating exponents? for example the code for multiply would be something like : x * x x being the variable you chose. Also the code for square root. Thanks
I made my own calculator. How can i create an instalation now?
EnzoMSI 4 months ago
@EnzoMSI
There are basically two ways. One way is to use the installer that comes with visual basic or visual studio. The other way is to get a custom installer. I use a custom installer for my programs. VB Installer is easier though. Go to the tab where you find your settings. If it's not already open, double click your project name in the Solution Explorer bar in the right. After you have done this, A tab should be open containing several other tabs. click on the tab that says, Publish
llPcErall 4 months ago
@llPcErall
Then mess around with some of the buttons on the right. (*****IMPORTANT****** If you used components that didn't come with visual basic or whatever you used to program your program, then click Application Files > Show All, and make sure all of them say include.) After you have changed all of the things that you wanted. click the Publish Wizard Button, save it to wherever, just remember to get it. Once you're done you will see a foldler containing a few files and folders. Done.
llPcErall 4 months ago
Aaand how do i add settings? :o
pereesfly 6 months ago
@pereesfly
to add settings, look at the Solution Explorer (usually to the up, right corner), and double click My Project. This will open up a tab showing multiple tabs. go to the settings tab, and you will see boxes, put the name of the setting in the first box. Settings can be used for many applications, and can make your application more advanced.
llPcErall 6 months ago