Includes Some Extra Credit Point By Making A Calculate Button Take Four Numbers?

Feb 3, 2012

I have an assignment that includes some extra credit point by making a calculate button take four numbers, add them together and give a commission. I know what I did works, but I just want to make sure I'm doing it right! Let me know if I did something wrong

[code]Private Sub calculateButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles calculateButton.Click

[Code]...

View 7 Replies


ADVERTISEMENT

IDE :: Dodger Blue Is On Vb - Extra Credit For My Class

Mar 9, 2009

I'm trying to get extra credit for my class.

View 1 Replies

Determine Prime Numbers - Calculate Button?

Mar 17, 2011

I am creating an application that takes two numbers (lower and upper) and determines the prime numbers

Public Class primeNumber
Private Sub calculatePrimesButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles calculatePrimesButton.Click
'declare variables
Dim number As Long
[Code] .....

Once I hit the calculate button nothing comes up. I've tried adding the first code inside the function with the remaining code but no result. Now I'm putting the first code in with the calculate prime button. I am guessing there's a sqrt method that needs to be applied but I am not sure if it should be part of the function or the main?

View 14 Replies

Making A Countdown Timer That Includes Minutes And Seconds?

Aug 15, 2011

I'm having a little problem on how to make a timer which include minutes and seconds. The design of the form goes like this:

View 4 Replies

Calculate The Width Of That Triangle At 1/3 Of The Distance From The Point + 2/3 Of The Distance From The Point?

Mar 30, 2012

assuming i have an isoceles triangle, where i know the height + base width, how

can i calculate the width of that triangle at 1/3 of the distance from the point + 2/3 of the distance from the point?

i thought it'd be simply 1/3 base width + 2/3 base width, but my drawing is +/- a few pixels when i resize it?

View 4 Replies

Make A Program That Will Calculate Sum Of Consecutive Numbers Between Two Given Numbers

Jun 4, 2012

I'm trying to make a program that will calculate the sum of consecutive numbers between two given numbers. [code]

View 13 Replies

Show The Numbers After The Decimal Point (.5)

Jun 17, 2011

I have a problem which is that Class Big integer Doing a miscalculation

For example: -

5 / 2 = 2.5

With Class

5 / 2 = 2

I want to do to show the numbers after the decimal point (.5)

View 8 Replies

Making Quiz - Assigning Point Value To Variable Depending On Answer

Nov 15, 2010

I am thinking is to have a question, then between 2-4 answers, and depending on the answer a point value gets assigned to a variable, but then when that one question is answered you can click a button that moves to a next page type of thing with a new question on it. I think I could probably figure most of this out but when it comes to switching to a different question I am not sure how I would do that.

View 11 Replies

Calculate Different Between All Numbers?

Sep 4, 2009

i have the numbers in listbox as below:

01
02
04
09
10

the question is ..how to calculate different between all numbers... exampel between 04 and 09 ,we have 05,06.07 and 08 between 09 and 10 is 0

View 8 Replies

Enter Only Numbers And Decimal Point In Text Box

Jun 28, 2009

I want to specify the user to enter only the numbers and decimal point in the text box.[code]values something like that which contain only numbers and dot.This is the code to enter the numbers only.[code]How to make the code to accept dot also?

View 5 Replies

Limiting The Amount Of Numbers To Two After A Decimal Point?

Jan 26, 2012

I am trying to restrict the the number of decimal places to two in a textbox.

I've already made it so only numbers and decimals can be added, now this is the only thing that isnt done

Private Sub MoneyTxtxbx(ByVal sender As System.Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles _
MoneyTxtbx.KeyPress

[Code]....

View 2 Replies

Validate A Textbox Which Should Allow Only Numbers With Decimal Point?

May 11, 2010

I am developing windows application in vb.net, i have textbox which should allow only numbers with decimal point. for example "99.00"

View 6 Replies

Calculate Numbers In Hexadecimal

Aug 18, 2009

I have 4 radiobuttons hex dec oct bin all the buttons works perfectly except the Hex.When i calculate or press a number in decimal, and i check the Hex, the number will perfectly change into hexadecimal, but when i try to calculate within Hex, its a calculation in Decimal.So i repeat.. i can calculate in base 8 octal, base 2 decimal, and base 10 decimal, but i cant calculate in base 16... and i think it has something to do with the letter notation...

View 4 Replies

VS 2010 Calculate All The Numbers?

Apr 28, 2011

In the TextBox1 I have the following numbers:5 4.1 6.23 0 0 7 7.924

Possible to calculate all the numbers in this way?

like replace all the "space" in "+" and get the answer or something?

View 4 Replies

Textbox Validation - Allow Positive Numbers And Decimal Point?

Sep 9, 2011

What would be the code to validate a textbox so that it can only accept positive numbers and a decimal point? If no value is entered, it automatically enters 0.

View 1 Replies

Regular Expression (RegEx) To Replace Floating-point Numbers In XML?

Aug 22, 2011

I'm using Visual Basic 2010 Express to edit an XML file. I want to replace items that have (typically) non-zero floating point numbers with a single zero.

View 4 Replies

VS 2008 - Working With Doubles - Numbers Seem To Round After The Decimal Point

Apr 1, 2009

intLoginTime = txtLoginTime.Text
intLogoutTime = txtLogoutTime.Text

[CODE]..........

The problem is that the numbers seem to round after the decimal point, so if I entered a login-time of 8.15 and log-out 9.30, instead of showing 1.15 as the difference, it shows '1'. is there a way around this?

View 13 Replies

Calculate Correct Value If Numbers Is More Than 16 Digits

Apr 28, 2012

i want to get the correct value if number is more than 16 digits [code]and i change it to double and the value is "1.11111111111111E+16"the answer i want is "11111111111111111".is it possible to get the proper value?

View 5 Replies

Use A Function To Calculate The Average Of Those Numbers?

Apr 28, 2011

I'm trying to write a program that allows the user to enter 10 numbers into an input box and then the program will use a function to calculate the average of those numbers. I'm really illiterate when it comes to Visual Basic.

View 2 Replies

Convert Single Precision Floating Point Numbers To IEEE 754 Hex And Back?

Aug 12, 2009

Private Function SingleToIEEE754Hex(ByVal pValue As Single) As String

[Code]...

View 1 Replies

Interface And Graphics :: Drawing Objects To Picturebox With Floating Point Numbers?

Jul 17, 2009

If I try to draw a circle by using e.g.

Code:
e.Graphics.DrawEllipse(Pens.Red, 50.133, 100.321, 0.1, 0.1)

I will get an error message. I tried something like

Code:
Public ObjectPoint As PointF
Dim cpoint As New PointF()
cpoint.ObjectPoint = New PointF(startX, startY)
e.Graphics.DrawEllipse(Pens.Blue, cpoint.ObjectPoint, 0.4, 0.4)

but it didn't work for the location and the circle size. How to draw a circle(and rectangle) by using floating point numbers?

View 6 Replies

Create Console Application To Calculate 23 Numbers Of Fibonacci?

Sep 24, 2010

how to create console application to calculate 23 numbers of fibonacci?This is the script I had done but facing an issue:

Module Module1
Sub Main()
'area to declare all integer
String inputstring;

[code]....

View 3 Replies

Making A 3d Picture Using Numbers?

Nov 10, 2009

I am making a application that you enter 3 number one for length, width, and height of a rectangle.It needs to display a picture showing all three.i am using windows form application to do this wil three text boxes to enter the numbers.

View 3 Replies

Exiting Sub - Program Calculate Fibonacci Sequence Which Calculates Numbers Correctly

Feb 2, 2010

I'm trying to create a program which will calculate the Fibonacci Sequence which calculates the numbers correctly however, there are a few problems.

1. When using a Do While...Loop the program becomes non responsive.

2. Kind of dealing with the program becoming non responsive; I am unable to stop the process by forcing the sub to Exit.

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Operation.Text = "Calculating...."
EStop = False

[CODE]...

View 3 Replies

Vb Function For Making Prime Numbers?

Nov 21, 2010

I made a form with a two text boxes for user input.A (lower bound) and an (upper bound), and then a text box to display all prime numbers in that range.I can't figure out what I am doing wrong, my error checking works properly but my math onlyreturns a true or false.

Function
Prime(ByVal findPrime
As Int32)

[code].....

View 1 Replies

Making Pause Button - Freeze The Form In Place And Then Unfreeze It Later At The Push Of A Button

Apr 29, 2011

I am making a small game of pong and i want to incorporate a pause feature. is there a way i could freeze the form in place and then unfreeze it later at the push of a button. the tutorial i used is below so check it out to get an idea of what i've made so far.

View 2 Replies

Making A Text Accept Letters Only Or Numbers?

Mar 9, 2012

how to make the values in a text box accepts only letters in the text box for data that are for letters only and numbers for data requiring numbers only

View 7 Replies

VS 2008 Set A Point Without Setting Point.x And Point.y Separately

Jun 4, 2009

I hve been working with points a lot recently, and I have been wondering if there is a way to set a point without setting point.x and point.y separately. For example for (3, 5): Point1 = (3, 5) But that isn't right

View 4 Replies

Make Program To Find Numbers On Form And Do That Without Making So Many 'Same' Codes?

Dec 18, 2011

[code]How i can make The Program to find Numbers On Form and Do That without making So Many "Same" Codes?Its Pretty Annoying To Make Big Program nad only Copying and Pasting Text.

View 3 Replies

Making Apps Is Generating Serial Numbers For Software Projects

Sep 12, 2009

Something ive wondered about as long as ive had an interest in making apps is generating serial numbers for software projects.Im wondering how is this done by the pro's so that someone can put a key into an app and without being connected to the net it knows the key is valid by using an algorythm.Id like to make something like that for the sake of learning how. I realise more and more programs now "call home" at the point of entering a key or to "activate" as with MS office and windows etc, but id like to start at the old school way of doing it.Generating the alpha numeric keys and also checking them.

View 10 Replies







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