Make A Calculator In VB 2008?

May 30, 2010

I have 3 buttons

+ is one button
- is one button
* is one button

I have three text boxes

firstnumber- is 1 box
secondnumber-is 2box
solution is- third box

View 2 Replies


ADVERTISEMENT

How To Make A Calculator

Nov 26, 2009

does anyone know what i need to do? if you do make a youtube video and post it in this post.

View 1 Replies

How To Make A Zodiac Calculator

Jun 22, 2010

how to make a zodiac calculator, I know the basic codes that I need to insert, but I'm creating it in a windows application. The day and year are text boxes that the user can input that particular information, but the month is a drop-down box. My two questions are: Is it okay to delete the private sub of the day and year so I can combine them into one sub? And how do I get the months to show up individually in the code area? Or would I have to delete the drop-down box completely and make it like the day and year text boxes where the user can input the information themselves?

View 6 Replies

How To Make Calculator Like Win7 One

Mar 5, 2011

I mean not like windows xp which the number and signs are not in the same textbox, but like windows 7 which you can see the whole calculation before pressing equal, and i don't think that compute.datatable can do this because it's limited with the basic signs(+,-,/,*) and it doesn't include the other signs(like : sin,^,root,log), so how to make a calculator like windows 7 one?

View 2 Replies

VS 2010 - How To Make A Calculator

Jun 5, 2011

How to make this calculator:2 Texboxes In first textbox is writeble (where user will write the version) The second textbox is notwriteble ( there will show the result)In the first textbox to make calculation of version.If user writes for example: 1.03.11 In textbox2 to display the calculation: 22656 If the user writes for example other version:1.05.50 In textbox2 to display the calculation:22895and the same way if user writes 1.03.24 or other numbers auto to calculate the versions, and if user writes a bad text in tetbox2 to display error: For example In textbox1 user writes text: omg In textbox2 shows : Error
Only if user writes number like this: 1.03.11 or other number will calculate it else to shows error

View 16 Replies

Make A Calculator With One Textbox And 16 Buttons?

May 8, 2012

I am trying to make a calculator with one textbox and 16 buttons. Buttons are:(0,1,2,3,4,5,6,7,8,9,+,-,*,/,=,C). So here is code for now:

vb.net Private Sub nula_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles nula.Click
TextBox1.Text = TextBox1.Text & 0
End Sub
Private Sub jedan_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles jedan.Click
TextBox1.Text = TextBox1.Text & 1

[Code]...

When I add those numbers and operators its easy, but how make operations really work now?

View 4 Replies

VS 2010 : Make A Rank Calculator?

Sep 8, 2011

VS 2010 : make a Rank Calculator?

View 2 Replies

Geting Error Message While Trying To Make A Calculator

Apr 15, 2009

I posted this in the wrong part of the forums. Using visual basic 2008 and keep geting this message whenever I try and test this calculator program I've been mucking around with for the past 2 hours.

[Code]....

View 9 Replies

Make A Calculator That Accepts Multiple Operations?

May 29, 2010

I am trying to make a calculator that accepts multiple operations, similar to the calculator found on Windows.

View 6 Replies

Make A Simple Resistance Calculator For Practice?

Nov 21, 2009

I am trying to make a simple resistance calculator for practice. I use text boxes to let the user input the current and voltage, and then a combo box for the units and then a list box to display the results. For some reason no matter which units I select it doesn't convert at all. For example 1/2 will always show up as 0.5 in the list box no matter which units are selected from the combo box. Here is my code.....I know that there is more cases but I only put one to see if it works before I write all of the cases.

Public Class Form1
Dim unitsA As String
Dim unitsV As String

[code]....

View 1 Replies

Make CE (Clear Entry) Work In Calculator?

Nov 21, 2009

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
TextBox1.Text = ""
End Sub

This is to Clear all numbers but I don't know how to Clear just one number. for example i want to do 23 once a user clicks CE, i want to make it show 2

View 1 Replies

VS 2010 - How To Make Calculator Work To Use Only Keyboard

Aug 26, 2011

I'm new in the programming area and I'm having trouble making a calculator. My question is: How do I make the calculator work using only the keyboard, without the need of mouse.

I tried this:
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs)
Me.KeyPreview = True
End Sub
Private Sub FlowLayoutPanel1_KeyDown(ByVal sender As Object, ByVal e
As System.Windows.Forms.KeyEventArgs) Handles RESULTADO.KeyDown
If e.KeyCode = Keys.NumPad0 Then
[Code] .....

It only works on the text box called Result. I want to know how do I make work in the whole Class, and if it is possible, to make it work on two different Classes without writing twice the same code.

View 6 Replies

VS 2010 Make A Game Statistics Calculator?

Jan 3, 2011

I want to make a game statistics calculator. For this I choose to make a XML database with the base stats of the characters.

I've made a small XML file in the VS2010 project with 1 class stats and made a list to 10 levels (to lazy atm to write all 85).

the XML looks like this:

<BASIC_CHARACTER_STATS>
<Levels>
<level id="1">1</level>

[Code]....

On the Form1.vb I've to combo boxes, 1 to display class names and 1 for levels.
Also have some Labels to display i.e. the base_STR number. But after trying random stuff to get it linked and closed VB to restart again because it was messed up too much

View 1 Replies

Make A Calculator That Adds From Two Text Boxes And Displays The Answer In Another Box?

Apr 23, 2010

I'm trying to make a calculator that adds from two text boxes and displays the answer in another box, but It gives an error when someone enters a character. What can I do to display a string error message in the third box if a letter is entered in one of the first two boxes instead of a number?

View 1 Replies

Make A Special Calculator Will Fall In Number In The Link Provided On The Website

Feb 14, 2011

I'm new to the forum and new to programming with Visual Basic Express 2010.I would like to built a special calculator.Calculator will fall in number in the link provided on the website.

[Code]...

View 16 Replies

Installment Calculator In VB 2008

Aug 21, 2009

Installment Calculator In VB 2008

CODE:

View 14 Replies

Making A Calculator In VB 2008?

Jan 20, 2010

I have to write a program that allows users to specify two numbers and then adds, subtracts or multiplies them when the user clicks on the appropriate button. The out put should give the aritmatic performed and the result. I inserted an attachment on what it should look like also Public Sub btnCompute_Click() Handles btnCompute.Click " here at this one I am getting an error message Error 1 Statement is not valid in a namespace. C:\Users\Tiffney\Desktop\School projects\WindowsApplication1\Form1.vb 1 1 WindowsApplication1"

[Code]...

View 14 Replies

VS 2008 Calculator Pi Function?

Nov 8, 2009

in my calculator script I'm trying to build I have a putton for pi, named Pi. The text on the button is pi. This is where the problem is. Up until now I've just been adding the value of the button to what I call the DisplayScreen (The textbox that outputs your answers), but Pi is not a number. And I want the value of the button to be Pi, not 3.14 whatever. This is what I have for the Pi

[Code]...

View 5 Replies

VS 2008 Making A Calculator?

Mar 18, 2012

I have a small project from my university they have asked us to make a calculator , well everything is easy so far except the 3 last functions that I need help with.

as we all know vb has already some math functions implemented in its libraries the problem here those functions giving me wrong results I am trying to get math.tan(lblnum.text) math.sin(lblnum.text) and math.cos(lblnum.text)

they don't output the correct numbers any idea why?

View 4 Replies

Forms :: Basic Calculator In VB 2008?

Dec 14, 2009

I am new to visual basic 2008, and i started with simple project-calculator. I made it to the point where "+" sign works, and "=" sign execute the command of "+" sign.Now i try to make "-" sign work: the problem is, idk how to bind it with "=". Here is the

Public Class Form1
Dim total1 As Integer
Dim total2 As Integer

[code].....

View 1 Replies

VS 2008 About Variable Help Me. In My Calculator Project

Feb 27, 2011

just Addition only at this time each number 0 to 9 have this code[code].....here what he says..Write the code for the equals button. There's only three lines in total, and here's a little help.

You need to use the other variable that was set up at the top of the coding window, total2. The variable total1 will be added to whatever is total2.The first line of code will be this

total2 = total1 + (something missing here)

Your job is to supply the missing code. In other words, replace "(something missing here)"

Remember that total1 contains the first number to be added. And you know where that came from. The only thing left to do is to add the second number.For the second line of code, you need to transfer the total2 variable to the textbox.For the third line of code, all you are doing is resetting the variable total1 to zero. That's because after the equals button has been pressed, we have finished adding up. If you wanted to do some more adding up, that total1 will still hold the value from the last time. If you reset it to zero, you can start adding some new numbers.

View 2 Replies

VS 2008 Cost Calculator Errors

Apr 17, 2010

I was trying to make a calculator which takes the amont of copies you want to make and it tells you the cost. Then you type in the amount you want to enter and if its less a message box comes up saying "please enter more money". I've had a few problems

1. when i use formatcurrency the program crashes for no apparent reason

2. if i calculate cost without entering any copies then it crashes (ive tried putting a msgbox in but it crashes anyway)

3. if i get the msgbox to come up saying "Please enter more money" i had to remove the formatcorrency tag.

View 9 Replies

Creating A VB 2008 Change Calculator As An Assignment?

Sep 24, 2010

I am creating a VB 2008 change calculator as an assignment. The program is to use the amount paid - the amount due to calculate the total.(this is working fine). After that, it is to break that amount down into dollars, quarters, dimes, nickels, and pennies. The problem I am having is that sometimes the quantity of pennies, nickels or dimes will be a negative number. For example $2.99 = 3 Dollars and -1 Pennies.

Option Explicit On
Option Strict Off
Option Infer Off

[code]....

View 5 Replies

VS 2008 Making A Calculator Using Arguments And Functions?

May 6, 2009

Ok. I just took my final for VB and the last chapter we did was on procedures and functions. Functions was the only thing out of this whole semester that I was just completely lost. I'm trying to work on this cause I'm taking Advanced VB next so I wanna know what I'm doing. So I'm trying another tutorial in the book and I'm really lost. Here is what the it wants you to do.

Retail Price Calculator

Write an application that accepts from the user the wholesale cost of an item and its markup percentage. (For example, if an item's wholesale cost is $5 and its retail price is $10, then the markup is 100%)

The program should contain a function named CalculateRetail that receives the wholesale cost and markup percentage as arguments, and returns the retail price of the item.

When the user clicks the Get Retail button, the program should do the following:Verify that the values entered by the user for the wholesale cost and the markup percent are numeric and not negative. Call the CalculateRetail function Display the retail cost as returned from the function.

Here's what the calculator looks like and my code so far.

Public Class Form1
Private Sub btnRetail_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnRetail.Click

[Code].....

View 4 Replies

VS 2008 Test Data For An IP Subnet Calculator?

Feb 5, 2010

I need test data for a IP Subnet calculator I have developed. I have tested some obvious scenarios, and all seems good, but the person developing can often be the wrong person to test.

The calculator can do one of two things:

1 - given an existing network and CIDR(mask), and a new CIDR it will create a number of networks with the appropriate number of hosts.

2 - given an existing network and CIDR(mask), and a list of c,h, (c = count, h=number of hosts) it will create the networks.

View 2 Replies

VS 2008 Variables That Don't Work On A Minus Calculator

Nov 4, 2009

I am making a calculator at the moment and the plus works and so does the minus well the minus does the FIRST time but not the time after that.you would normaly get 2, but instead it says that the answer is -3.I have attached the calculator so that you can have a look.

View 3 Replies

Ask Code In Visual Basic 2008 For Calculator Programming?

Oct 18, 2011

Build calculator using visual basic 2008

View 1 Replies

VS 2008 Developing A Lawn Mowing Calculator Application?

May 2, 2009

laterly I've been trying to think of smarter ways to use code my programs. My Uni class's latest assignment involves a Lawn Mowing Caculator. I've designed a form below, but now I'm stumped for where to start on my code for it.

View 4 Replies

VS 2008 For Loop - Annual Interest Rate Calculator

Dec 9, 2010

I am working on a calculator that does the annual percentage rate. The code has to use a For Loop (which I am new to). This is the code I have so far.

[Code]...

View 9 Replies

Write A Speed/distance Calculator Using VB 2008 Express Edition?

Apr 24, 2010

I am attempting to write a speed/distance calculator using visual basic 2008 express edition. I have gotten the program to do most everything I need but am having some difficulties and have been trying to fix them for 2 or 3 days now without any success. Will somebody, anybody please tell me how to fix the problems.The calculator should display the distance traveled when the speed and time are entered. This is the only major requirement. However, It needs to have all info input via a list box with popup windows displayed for speed entry and then again for time entry. I would like a label outside of the list box to show "Total Distance Traveled" and I would like the list box to display the following information

[Code]...

View 3 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved