Creating A Simple Function Calculator?
Dec 8, 2010
i am going creating a simple function calculator, but I had to first do a design documentation proposal. I now have to update the project proposal with a storyboard or list of menu and screen items to delineate my proposed user screen and menus.aside from the calculator itself there will not be any menus.I also have to list any user data inputs and outputs my application will require and produce, which i assume i can put any numbers that the user inputs into the calculator and their results.
View 5 Replies
ADVERTISEMENT
Oct 11, 2009
I am doing a tutorial for a simple calculator. My question is how can I add code to make a botton that add my tax % to the total amount I have.
Option Explicit On
Public Class Form1
Dim firstnumber As Single
[Code]......
View 1 Replies
Mar 20, 2006
how to build a simple calculator in VB; i got the interface with buttons and text box alredy and i figured out how to put more then one number using buttons alredy(Disp.Text = Disp.Text & 1) , Looking at the windows calc, how do you store the number u just entered into a text box and alowe user to enter another to performe calculations, what code should i use for equal button and etc.
View 10 Replies
Jul 12, 2009
code for calculator using vb.net
View 2 Replies
Oct 1, 2005
how to make a simple calculator using vb?
View 11 Replies
Mar 29, 2011
I want to create a simple calculator using only 1 textbox , 1 button and 1 label, but I don't know how to create the code.
for example if i write : 53+35-33=
and if i press the button it will calculate and the answer the label will show the answer (55).
View 3 Replies
Jun 16, 2011
I am new in programming, I am trying to develop a simple calculator but I am unable to connect the addition, subtraction and equal sign buttons.[code]
View 1 Replies
Jul 31, 2011
I've got the bulk of a calculator up and working, however it doesn't like multiple operations. For example 3x5+2= brings up 10 (i.e. 3+5+2) and even doing it in two parts doesn't help, if I enter 3x5= I get 15 then +2= gives me 32 (i.e. 3x5=15 15x2=30 30+2=32). Also I am getting trialing zeros in my command line I can't debug.Note that lblcommandline displays the whole function and lbldisplay just displays the current imputted number.
Public Class frmSimpleCalc
'This code is run when the program starts. Here we 'declare' or basically, define which variables we want, what they are and such.
'So, for this example, we need two variables. The number we are CALCULATING and the one which we will CALCULATE FROM.
Dim lCalcNumberMaster As Long 'The master number is the solution, the number stored and displayed when we click equals.
[code]....
View 3 Replies
Jun 11, 2011
I am making a calculator Program to start off on visual basic. I got it to work with MsgBox, but now I'm trying to get it to work with the Print.
MsgBox Example
Public Class Form1
Private Sub Button1_MouseClick(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles Button1.MouseClick
Dim Pizza As Integer
[Code] .....
Say I type in 6 and 6 I'm getting errors saying Example: Conversion from string "youranswer is 12" to type 'Integer' is not valid. I've tried many things, but it's not working. I want to know what I need to do to get it to print out how I want it. Do I need to do some conversions properly somehow?
View 2 Replies
Jan 30, 2010
Simple Calculator multiplication and division Trying to make a simple calculator. My program inputs numbers and arithmetic operations thru commandbuttons. The numbers, num(n-+1), are odd and the operations, op(n), are even. The code is based on the even op string. Every time a op occurs it is stored in numop(n) to be accessed later. I have all the other operations in sequential order: "*"," "/, "+" and "-". The other similar For-Next loop are the same just interchange the two * for /, +and -. The "+" and "-" work fine in this configuration.
My problem is the multiplication and division does not occur. The numbers and operations line up. The numop(m)=g*h should yield numop(m)=num(1)*num(3). Is there some sort of code to be inserted to accomplish these multiplication and division operations?
[Code]...
View 7 Replies
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
Dec 12, 2011
I am trying to develop a simple math calculator that will allow the user to input the right-hand-side (RHS) of an equation into a textbox on the application and have the application evaluate the expression for a given value of x, which is also input
into the application by the user via another textbox.For example, if the user wants to evaluate the following expression,
y = 3 + 4*x + 5*x^2
then they would input into the textbox the RHS of the equation
3 + 4*x + 5*x^2
and then enter a value of x into the another textbox and click on the calculate button.I tried this:
answer = EquationTextBox.Text
but it doesn't work.
View 6 Replies
Dec 2, 2010
i am creating a backspace key for a calculator. first of all a currency needs to be chosen by clicking a button, when for example the is clicked the text is entered into the texbox. But when i use the backspace it deletes here is my code..
Private Sub btn_pound_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btn_pound.Click
'Enable the keypad when the pound sign is clicked,Disable the curency buttons after'
pnl_numbers().Enabled = True[code]....
View 4 Replies
Apr 19, 2009
Since it's been a while since I have done anything in VB and I wasn't that accomplished anyway, I thought I would VB.net (VB 2008 Express) and fiddle around with it. I am in the process of making a calculator, which so far only adds...the other functions will come. The adding is where I am having difficulty. Here is what I've got:[code...]
I am not adding the right things...I know, but I am running out of ideas...too tired, but can't stop now. Just too close to have one function of the calculator working.
View 3 Replies
Dec 9, 2009
What code to use in a payroll calculator I am making. The requirements are
1. Name of employee.
2. number of hours worked
3. pay rate
4. percentage of state tax.
5. percentage of federal tax.
6. percentage of FICA tax.
How I would go about this.
View 3 Replies
Jan 7, 2010
I'm completely new to programming and wondered if you could help me. I've designed a simple calculator that can add numbers together but am now trying to create a subtraction button. This seems more complicated, I've searched various forums but am a little confused and wondered if any of you can help or point me in the right direction. Here is the coding I've done for the Add button (cmdPlus):
Private Sub cmdPlus_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdPlus.Click
[Code]...
View 4 Replies
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
Feb 17, 2010
I'm creating an amortization schedule for my mortgage calculator and I'm having a problem with a loop.
[Code]...
View 2 Replies
Jul 22, 2010
I am new to the MSDN forums and was wondering if you could kindly help me with a learning project.I have created a calculator with a simple addition function button and was wondering if the method I used to create it is efficient and how I may go about adding additional functions such as a minus function.Will my current code allow m to implement a minus, multiplication, or division function easily?How do I add a minus function and would adding a multiplication or division function? Also would can I use the same global variables to do this.[code]
View 1 Replies
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
Nov 30, 2010
im making a calculator with multiple function but im stuck on two main parts on it. i wrote a big chunk of code for the total calculator. it adds, sub., multi., or divide the amount of numbers the user puts in and then it ask them to enter them in individually using a loops, radio buttons and a listbox. im stuck on the loop because it will as for the 1st number and the last number heres the [code]......
View 5 Replies
Sep 6, 2011
I have probleam with my code, currently i am create scientific calculator which have function sin, cos & tan. The code i create it not working because every time i convert the function it will show 0 as answer. how to correct my code here.
Public Class Form1
Dim total1, total2 As Double
Dim [Operator] As String
Const conversionFactor As Double = Math.PI / 180
Dim result As Double
total2 = Val(answer.Text)
[CODE]...
View 4 Replies
Mar 2, 2009
creating a mortgage calculator that display continuous information depending on the user input such as monthly payments, remaining balances, and interest paid. I am attempting to use a list box and am currently stuck. [code] Please use code tags when posting your code. Code tags are used like so.
View 1 Replies
Oct 21, 2010
I'm attempting to do a school project dealing with a simple web crawler. I have a form with a web browser control embedded that loads a web page will all the available courses. I have a text box and a button design for a user to search for a specific course by using the four letter department abbreviation. The page that I have loaded has all the department abbreviations as hyperlinks.is it possible to search the page using the four letter abbreviation specified by the user and if the search finds a corresponding hyperlink open it. Then I would use a loop to repeat the process of opening each class offered by that department and obtaining information such as course name, section number and so forth.
View 2 Replies
Apr 25, 2009
I would like to click next to go to another image in a picturebox but I only have one picture box setup to have the new letter displayed in it. I have 26 images to display and need to know how to setup a loop to go through each image? It seems simple but I cannot figure out how to get to the third image, it only goes to the second image and stops. I also need to know how to setup the back button to display the prior image in a picture box.
View 8 Replies
Jun 21, 2010
i want to create a simple POS system, can you tell me how can i hide group of buttons/ controls on the first load of a form and then group of controls will just show after a button is clicked or selected. Also i want to have a display (on same form) of what is selected by the user.
View 3 Replies
Mar 24, 2010
I am a total bginner to vb.net programming. I am trying to make a simple program that allows the user to
1.change desktop background
2.Allows the user to select a boot image listed in the form
3.alows the user to enable disable the task manager,registry editor and control pannel.Replace Windows Boot image (Picture source is a picture box in form)
4.Change XP Start Button Text
5.Disable/Enable Windows Keys
so this is how far I got;
Imports Microsoft.Win32
Public Class Form1
Implements IDisposable
[code]....
View 3 Replies
Feb 21, 2012
I'm suspicious my spouse is cheating. In the past few months he has systematically locked me out of all of his social media accounts shortly after getting a job with a group of female secretaries that travels for a week at a time. He has been dodging or non-communicative when confronted about this.url...
The only way to avoid interaction with antispyware is to create it myself.I understand that copying text or something into an open notepad session or the clipboard is out of the question; however I'm pretty sure that I could create a (fairly) simple script that does the following:[code]I know this is extremely inneficient but this is the most covert way i can think of, a simple wscript that runs on startup and creates these .txt files in an important looking place (windows/config/system/logs/win32 - example)
View 1 Replies
Oct 13, 2011
I am trying to create a simple browser that will be mainly for personal use. I followed a tutorial to create the actual browser; the address bar and the Go button and now I need to create the Home button, Back and Forward button.If I can find the source code for it, I am going to implement it into my sample browser and perhaps?
View 20 Replies
Dec 17, 2008
I dont know wether this is the right place but would i be able to use somthing like streamreader to change a .txt on another computer? If so, how?
View 3 Replies