VS 2010 Multiplication In Forms - Multiply 2 User Input Numbers In Forms
Jun 22, 2011
I'm using VB 2010 and need to multiply 2 user input numbers in forms, so basically: TextBox5 = TextBox2 * TextBox3 That obviously didn't work but it shows what I want it to do.
View 3 Replies
ADVERTISEMENT
Oct 14, 2010
I'm having trouble using Visual Basic. It's my first time with the program that my college course is requiring I use. I'm having problems programing the script for an application. It's suppose to take the rate of a bunch of employees that are programmed into the application using an array, and multiply it by a decimal number that the user inputs into the application.
View 5 Replies
Jul 12, 2009
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.
View 3 Replies
Mar 21, 2010
I need to code a basic multiplication table in VB. I need a popup input box to ask the user to enter a number, then a label to display the multiplication table for that number from 1 to 9.
[Code]...
View 5 Replies
May 8, 2010
I am developing an application that takes user input into text boxes or list boxes or check boxes. I have 4 forms with questions of different categories. I want to form a paragraph string with some literal string text and add in the text from text boxes, selected item from list boxes and, either, add literal text string or add nothing to the string based on check box condition.dim strScopeParagraph as string
View 10 Replies
Jul 28, 2011
Trying to imitate a Messagebox - in that, a sub will not continue until the user "deals with" the pop up.
For example, in a sub, I want a Form to pop up, and ask a user a question, and give them 3 options. I want to make it so the user must click an option, and then the sub that called it can carry on it's way.
I believe I need a function to make this happen.
View 9 Replies
Oct 24, 2010
I have a passport number textbox and I want to limit the user to 7 numbers and a Letter in the textbox. How Do I do that?
View 1 Replies
Jun 17, 2010
I'm trying to write vb code to verify a password input by a user to known table passwords in access database. The form has a drop down combo box that has userID's that are selectable. I'm trying to get the index number out of the combo box selection and use that to look up what the password should be. With that information i can then compare the stored password with the password typed into the text box below the combo box. All of the examples i've found that direct me show the code in regular Visual Basic. I'm using Visual Basic 2010 with the .net architecture.
View 3 Replies
Jul 22, 2011
I'm developing a windows forms application using VB.NET. I'm currently working on DataReport (by Microsoft, not Crystal). Everything works fine when using DataSet as DataSource. But I have a question on how am I going to put data to my DataReport from a user input? Preferably when the user is on the act of printing(clicking the print button in the ReportViewer), a Form will pop-up and ask him for input. That input I'm talking about is random names of people, and we don't have to track their names so there's no reason to put it on the database.
Here's my simple setup:
MainForm.vb (Form)
MyReportViewer (ReportViewer)
MyReport.rdlc (DataReport)
[Code]....
If it is impossible to do it on the act of printing. Maybe on the MainForm_Load event or before the generation of report can do.
View 1 Replies
May 6, 2010
How do I code in vb.net that the text box can only accept 10 inputs from the user. User can only enter 10 strings.
View 2 Replies
Mar 30, 2009
I am trying to figure out how to generate code from user input. In Visual Studio 2008, Visual Basic.My script always begins with:function Init (Quest)Then from here a user would input a quest name, type and zone in a interface using windows forms.[code]I would also like to have these available on the UI but wont generate unless a user checks a box to add them or there is a box already for them but wont step into the code unless the user enters something into the box.Is there anyone that can explain how I would go about doing this. Or maybe some kind of visual studio plugin that will help me out.
View 2 Replies
Feb 25, 2011
2 forms, on the first form I have a listbox which recieves it's items from a datagridview, when I click on a button all the items (in the listbox) are converted to a string and add to a richtextbox on the second form.
On the second form I have also a numericupdown, and here is what I run into.
With the numericupdown I want to multiply or remove blocks of strings from the richtextbox.
For example, when clicked on the button (form1) a string is add to the richtextbox, when I click (on form2) on the upbutton of the numericupdown I want to add the same string again below the existing one with 2 blank lines between them (this can be down a lot of times). When I click the downbutton, a string should be removed.
In short term, the amount in the numericupdown should be the amount of string blocks in the richtextbox.
Here is the code I use to copy listbox.items to string and add them to the richtextbox:
Public Sub SGLists()
Dim i As String
For Each i In Me.ListBox1.Items
[Code]....
View 12 Replies
Mar 18, 2011
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,
[Code]...
View 11 Replies
Nov 10, 2011
We have an application that has a main form with a map on it. Right now the paradigm is to have forms that are displayed using menu items to display information to the user. Most of these forms are modal forms, but a couple are non-modal forms that interact with the map. For some of the forms, it really would make for a better user experience if we could dock them in the main form of the app and allow the user to see both the form and the map. For instance. We could have a list of map features in a docked window, and select one of the items on the list and have the map zoom to that feature. Or do the reverse: let the users select a map item and have a docked window that shows details of the feature. Sounds great, but I wonder about what sort of gotchas we may encounter. In particular, what if we have two windows docked at the same time? Could we get tangled up in our event code?
View 2 Replies
Jul 27, 2009
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?
[Code]...
View 9 Replies
Mar 18, 2010
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?
View 5 Replies
Jun 4, 2011
.NET developing and have a simple question, i've been stuck on this for a while and searched many forums first with no solution so i'm posting myself. In VB for excel i've used Screenupdating=false to disable the screen updating however now i'm creating a visual studio 2010 windows forms application and its not showing up as a property. Here's the code i've tried.
[Code]...
View 4 Replies
Mar 23, 2009
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.
View 1 Replies
Jan 21, 2010
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.
[Code]...
View 24 Replies
Dec 25, 2011
I'm looking forward to reading and adding more to the community here. I've created a text based rpg. Next semester we are learning Visual Basic. I'm on winter break and I would like to get a head start on my learning. I've been working on creating some forms and message boxes. What is throwing me off, is that I have a good feel for doing coding so that I get functionality the will produce effects in a console. Coding the forms is a bit confusing for me. Is this something that others have run into? Is their some good primers for VB? I don't have my text books yet.
View 10 Replies
Aug 11, 2010
I need to figure out how to multiply hexadecimal numbers in vb .net 2008.Ex / 7E1 x 2 == FC2I was thinking maybe converting the hex to bytes, multiplying that, then back.
View 13 Replies
Jan 15, 2011
I need some help with the input validation of my application. Attached is the code that I have written as well as a screenshot of the front end. I specifically need input validation to verify that the user selected input for cbLengthOfStay is a number between 1-10 as well as input validation to verify the user input for txtMedication, txtSurgicalCharges, txtLabFees and txtRehabilitation is a positive numerical number. Please feel free to critique my attached code. [Code]
View 2 Replies
Mar 4, 2011
I am doing a bar cash register and I want to use a if statement to see if fosters button and number 1 on the number pad are both pressed then multiply constant by quantity number
View 1 Replies
Aug 20, 2010
How can I program a multiplication table that will input the x and y as columns and rows.
View 4 Replies
Feb 19, 2011
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.
CODE:
View 4 Replies
Apr 12, 2010
i have 6 groups of 5 textboxes each one with numbers 12345 i want to know how i can multiply them and how to see the 15625 numbers
View 31 Replies
Apr 9, 2011
CODE:
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
View 1 Replies
May 12, 2009
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.
View 22 Replies
Nov 19, 2009
I have form 1 having combo box with some items. I have an item called "Add New". If the user selected "Add new" i need to pop up form 2 which having one textbox and save button. when the user clicks the save button i need to add the textbox text in to form 1 combobox items.
View 1 Replies
Feb 5, 2011
I have created a simple calculator in VB.net 2010 and whilst i have basic functions and calculations working correctly i cannot figure out how to use the numberpad as a means of input rather than by clicking on the buttons i have placed on the form for each digit.Is there a simple way of asigning a key on the keyboard to activate a click event of a button on my form?
View 14 Replies