I can get the numbers to convert the input works right dispalys in listbox just wont loop been at it for two weeks It only ask for store 1 values it displays it but it doesn't prompt for the rest of the stores values it should be 5 i tries for 1 to 5 at the top of the statement but that didn't work either.
private Sub btnDisplay_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnDisplay.Click
Dim strvalue As String
Dim intcount, intsales As Integer
[Code] .....
I have a program that allows a user to input numbers from an inputbox and it displays the Total numbers entered, the sum of the numbers entered, and the average of the numbers entered. What I can not seem to find it how to have it display the largest number entered. The code I have so far is,
i have one more issues, and hope is the last for now. How can I limit a textboxe's input to only numerical with certain range of values (eg -10 to 10) and with that happening while I type in the values?
I have 10 buttons 0-9 And i have 4 textboxes All representing different values (n,e,x,y) Ok so what i want is to be able to use my 0-9 buttons to input the numbers into the boxes. However my problem is How can my program know which text box the mouse cursor is in. Right now, i can only get it to go in one of the boxes That i tell it too by using the textbox's name. Or all of them at once.
SO is there a way that when i click in text box "n" when i click numbers they will go there. Then if i click in text box "e" and click the the numbers, they will go in there?
i want to restrict input of a textbox to only numbers but am doing it on asp.net, so i cant check for each character that is being inputed cause it will cost me a post back and thus lots of time?
I have been trying to have a user input 10 Inclusive numbers between 100 and 199, but it doesn�t seem to be working, can someone point out where or what am I doing wrong?
I have an assignment that is supposed to accept user input of random numbers. The only part I'm struggling with is I'm supposed to make copies of the array after the user is done inputting the numbers. These copies has to be sized exactly to how many numbers the user input. Am I supposed to use a counting variable and if so how?
this up but this line below seem to be the problem this sentence (Textbox1.Checked) its supposed to add all the numbers up and give total in a input box under the score line is the complete code sorry for wrecking anyones head cause mine is demented
from mark Protected Sub TextBox1_TextChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles yourtotal.TextChanged
using for...next loop the program is supposed to accept 2 user inputed integers and display all even numbers between the two in one label and all odd numbers between in another label.
Private Sub displayButton_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles displayButton.Click ' displays the odd and even numbers between two integers Dim intNum1 As Integer
[code]....
I'm not exactly sure what this code is doing. When I put 1 in the first number and 10 in the second number, the odd label only shows 9 and the even label only shows 10. Another example is when I put 2 and 15, the odd label comes out as 15 and the even label is 14. I'm very new to VB and programming in general and have just started getting into for...next loops and don't fully understand what the counter is or how the loop is supposed to work. I guess I'm having 2 problems. One is that I don't know how to make the program find the right numbers(my logic is off? or how I set up the loop isn't right?) and the other is the labels are showing only 1 number each instead of all the numbers in between on their own line.
I am new to VB.Net and programming all together. I am trying to make a program that will take 2 numbers input by the user, Add them together and display the sum. Then take the sum and divide it individually by each number to give you what percent of the sum the numbers are. I'm working on making it a program that will calculate the Hardy-Weinberg equilibrium for my Anthro Class. I'm just doing this for practice for my VB.Net Class. But i will move onto that at a later time. I just want to finish this first.
So.. Here is my code so far. It's not complete yet but this is should be enough to make it function.
I know how to read input numbers, but when I input equation like A+B, I can't use the equation to add two numbers. I tried many times but failed to use the equation.
Am working on a project like a office automation. The problem am displaying the balance amount using lables.But i want to display the numbers like we see in calculators...
One way to do that creating usercontrol which gets input and display the numbers.
I'm trying to add a string to a access database, for a column that was originally designed for numbers, i have changed the data type under the design view from number to text, yet I still get a error saying that it cannot convert the string expected int32
Input string was not in a correct format.Couldn't store in Parent_ID Column. Expected type is Int32.This is the full exception, i would have put it into code display but the option wasn't there
System.ArgumentException was unhandled Message=Input string was not in a correct format.Couldn't store <A-238> in Parent_ID Column. Expected type is Int32. Source=System.Data StackTrace:
Im working on writing a program for doing standard deviation and as of right now im running into one slight issue with subtracting my mean from the original numbers. I will post most of my code so you can get an over view but i mostly just want help on this one little part for now. Im going to be making a website for school and put some programming stuff on it so i wanted to make just some random programs for it so this is school related but not really homework. It's line 26 and 27 that this is relating to. When i put a stop in my code and look at the result of arrayDifferences it gives me 0.0 when it should be -1. I know i can go this route and say arrayDifferences(1) = arrayDifferences(1) - arrayAvg but seeing as how i want this to be a random number of numbers input by the user i cant do that.
I need to take user input, validate to ensure there's no negative numbers and display monthly fee and check fee in a Label.....with a calculate button_Click
I'm currently in VB class at my highschool and we just got chapter 6.1 to read on this online textbook that we follow. Anyway, we are doing loops now and the problem reads "Write a program to request positive numbers one at a time from the user in an input dialog box. The user should be instructed to enter -1 after all the positive numbers have been supplied. At that time, the program should display the sum of the numbers." So far I know this much
[Code]...
Now I know this isn't right But I can't find out how I'd pull out the numbers the user entered to get the sum of them and not include -1 because as it stands, when I hit ENTER with -1 the label just shows -1.
I've used .NET for a long time now but I have come across something I haven't had to do before and I'm struggling to work it out. What I need to do is work with binary numbers and convert them to decimals and vice versa but not necessarily using even numbers e.g. I would like to represent a number between 0 and 2047 which can be represented with 11 binary digits. Plus I want to represent a second number between 0 and 500000 which can be represented with 19 binary digits, and a third number, fourth etc. Then I want to string the whole binary results together and split it in to sections of lets say 5 bits each and convert those back to decimal.
How do I convert input box information to the listbox in visual basic I'm trying to display my information in the listbox as shown vehicle speed : (the number entered here) time traveled: ( number of hours entered here)
Possible Duplicate: How to convert numbers between hexadecimal and decimal in C#? In C, you can do something like int x = 255; printf("x is: %d and in HEX, x is: %x", x, x); How can I do that in C# or VB.net? print the variable's hex equivalent
I'm having trouble with programming a clock that will display Time in either numeric form or word format depending on user input(word format means '3:40:32" as "Three Forty Thirty Two Seconds") Below is the code I wrote so far..
[Code]...
Changing color of font works fine. Problem is it keeps changing back to numeric form after being changed into word format for a second. I think I should use Loop or Next, but I'm not really sure how to put it. I tried using it, but it caused infinite loop
im a student still learning and im stuck. im writing a program that returns the ip address, splits it in to parts, and now i need it to return a string of letters for other parts to use. EX.
ip address 127.0.0.1 will look like ABG.XXX.XXX.XXA ( i would like to set 0=X so it is easier to pick out the actual numbers)
I am able to split it and display each part and rewrite it to textboxes without the "." but i dont know where to begin to change the numbers to the letters i need.