VS 2010 Calculate All The Numbers?
Apr 28, 2011In 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?
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?
I'm trying to make a program that will calculate the sum of consecutive numbers between two given numbers. [code]
View 13 Repliesi 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
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 Repliesi 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 RepliesI'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 RepliesI 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?
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]....
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]...
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]...
The string itself contains things like "random" & random.next(1,3) & "random2" etc. The string registers all of this as a string and doesn't actually calculate random numbers.Is there any way to fix this?
View 8 RepliesCalculate maximum or minimum of "x" numbers
View 2 RepliesI'm trying to figure out how to calculate the lower 7 bits and 7-13 bits of two hex numbers.
Here is some example c code, just need this in vb.net:
serialBytes[2] = 0x64 & 0x7F; // Second byte holds the lower 7 bits of target.
serialBytes[3] = (0x64 >> 7) & 0x7F; // Third data byte holds the bits 7-13 of target
The 0x7F is a constant so the only number that changes based off input is the 0x64.
I have a project to calculate how many day is there before 05/12/2010.
View 10 RepliesI'm new to VB and i want to make a program that calculates with the text in the textbox.So in the first 3 columns you put the names yourself and the last column displays the names from highest to lowest points and the rows in the 3 first columns have points from 100 to 10 (highest to lowest). How let i calculate vb with these column and rows so i get the name with the best result in the "totaal" column?
View 2 RepliesI am trying to calculate the number of years for my calculate age event handler, however i am apparently missing a method or whatnot because im trying to calculate the age , can anyone suggest help on this. I need to subtract years to get my age but when i try the birthdate.Subtract (currentDate) method i get an error about not able to convert from LONG?
So below is what I have.
Private Sub btnCalculateAge_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnCalculateAge.Click
Dim currentDate As Date
Dim BirthDate As Date
Dim Age As Long
[CODE]
how to calculate "InvTotalTextBox" and "InvDiscountTextBox" values then show the result in "InvNetTextBox"..?
how can i do..?
three TextBoxes in a form
InvTotalTextBox, InvDiscountTextBox and InvNetTextBox
InvTotalTextBox is Binding with Table Field "InvTotal"
[Code]....
I know how to calculate a city's location on the world map by using its geographical coordinates as a pixel on the map but how in .net can I draw a link with a cuve? Once I have the curve does anyone know how to determine where the curve should be for the shortest route?
View 12 RepliesI made a sort of downloader program in Visual Basic 2010, and it downloads okey. It reports the full size of the file, and how much that has been downloaded right now and the percentage.
But, a function that i am missing is to show the user how much time is left on the current downloading. I have searched for it, but i couldn't find any solution that would work.I should also mention that i use a webclient for the actual downloading part.
I Have a datagrid with Item, Description of Item, Qty and Price.I would like on the 1st txtbox display subtotal depending on the quantity, price and add a tax textbox and the subtotal all from the datagrid to to those textboxes.
I already have all of that on my table of Products.
I am creating a puzzle game and would like to calculate the width and height of the puzzle taking into account the original image size and the screen resolution. My screen height is 768 and width is 1366. An example image is 1200 x 1600 and the jigsaw size that works well with this image is 480 (height) x 640 (width). I would like to create an algorithm that calculates the jigsaw size for any image bearing in mind that the screen resolution will change as will the size of the image.
View 2 RepliesAt my school i have to make a program and im almost done with it but everytime if i dont put any inputs on the program and press calculate it crashes. What should i write in the codes not to crash if all the inputs are empty.
View 7 RepliesI Have created a program (see below) that enables you to use you cam. You then draw a line and calculate the angle. The purpose is that I do alot of work with remote control cars and need to acuratley set toe and camber angles, it takes to long with the "old" method So I am creating this little program. ok, so, lets see what I want to do. Well, the first thing I would like to do is draw a line from top to bottom of my picture box dead center of left to right, this is dead center of the cam so the bottom of your item should be posistioned to meet the bottom of the centre line. I then draw a line from bottom to top of the objects angle. I then use the dead center line and the line I drew to calculate the angle.
[Code]...
Is there a way to calculate BesselI functions in VB 2010 Professional. I have calculated this in Excel but do not want to have to open Excel to do this because my clients use Excel 2000 up to Excel 2010 and the syntax is different. Plus it is slow and inelegant. [code] where CM and NTU are floating point variables.
View 2 RepliesI'm working with an API, for this I'm using this particular call: [URL]
If i use this, I will get all the .price values:
For i = 0 To .bets.Length - 1
With .bets(i)
Print(.price)
End With
Next
Can I calc the average .price value? I will need to sum all the values as well.
I have tried to run below macro in excel 2010, but the error pop up and after press debug button, the line "expected_loss = application.worksheetfunction.average(final_loss)" was highlighted. May I know how to solve this problem?
Sub test ()
'Aim: to store data in array and calculate the average of the data in the array
Dim final_loss(1 to 70000) as double
[code].....
I have to calculate y = a + Bx or y = mx + b in non engineering form. Anyways I have to calculate the y intercept first and am having trouble calling the function from a module. Here is the module and the second window will be the code from my main form
[code]...
[code] Everytime i press the Calculate Button, it crashes on my first calculation part. What im trying to do is to not crash the program eventhough i have no input in it.
View 1 RepliesThis is the Project that i have to make. Create a project that will input an employees sales and calculate the gross pay, deductions, and net pay. Each employee will receive a base pay of $900 plus a sale commission of 6% of sales.
After calculating the net pay, calculate the budget amount for each category based on the percentages given in the tables below:
Your Form should use text boxes to input the employees name and the amount of the sales and also use text boxes to display the results of the calculations. Provide buttons for Calculate, Clear, and Exit. Display a message to the user for any bad input data. Now i want to know for constants its going to be : commission sale, deductions and everything in Budget? I am also guessing that for the gross pay its going to be the" Gross pay = base pay * Commission" ?
I'm again got stuck in a simple problem, i'm learning it by myself. I didn't able to do it as i've tried many times. I'm making calculator. Please tell me what I'm doing wrong?
VB.Net
Dim total, num As Integer Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Label1.Text = Label1.Text &
[code]....