VS 2008 Unlimited User Input?

Apr 1, 2011

How would you let the user of a program enter an unlimted amount of numbers ranging from 0-100, and then have the program tell the user the highest and lowest values from the data they entered?The user would enter the data in when they clicked a button, and the program would sort the data out when another button was clicked.

View 8 Replies


ADVERTISEMENT

Create A Program Which Promps The User To Enter An Unlimited Number Of Test Scores

Jul 7, 2011

Create a program which promps the user to enter an unlimited number of test scores. The program should show the high score and the low score. You should use a loop of your choice within this program. The program should look similar to the one below:

View 3 Replies

VS 2008 User Input?

Oct 7, 2010

I am using Visual Basic 2008 and I have two text boxes so people can input information and I am trying to get it so it will run a code with user credentials. However the code is giving me an error saying that "Option Strict On disallows late binding."Here is my code so far:

Public Class CIBNA Private Sub OK_Button_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles OK_Button.Click

[Code]...

View 4 Replies

VS 2008 How Many Numbers User Input

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

VS 2008 User Input With Combo Box?

Jul 10, 2009

I am writing an app that uses a combo box to list file types for a user to select from. Because a complete list of all options is both impossible and wildly unwieldy, I am only providing about 10 common extensions. I want the user to be able to type in their own file extension if the one they need is not listed. the first item in the combo box is empty by default, but during testing when i type something in their to use as my selection, i get the exception "Object reference not set to an instance of an object." pointed at extensionComboBox.SelectedItem.ToString

View 7 Replies

VS 2008 Webcam With No User Input?

Dec 28, 2009

ive been steaming on this one for quite some time. Ive got a program that relies on remote control of the computer, and i need to be able to take a webcam image without the user having to press buttons etc. So far, ive gotten to the point where i can find my webcam, and with the help of a button, start a preview, then take the picture and save it as a jpeg.Problem is, when you press the button to start the preview, another dialog box shows up (not related to my code) prompting me to select a video source..Im confused kus it seems as though the list i find on form_load does nothing at all if when i press the button it prompts me with the same list.Well you can infer from this that i cannot use the btnstart_click(sender, e) on form_load because it opens a dialog that wont close until i press ok, and i already tried to sendkeys enter, it didnt work.anyone have any idea how i can either alter my code, or make new code to take a web cam image, and save it with no user input?

[code]...

View 2 Replies

VS 2008 - CipherText Encryption (User Input)

Jun 15, 2010

I'm a complete beginner to programming alone, let alone VB.net. What I need to do is encrypt a block of text inputted by a user using a keyword that will also be inputted by the user. This is all to be done using ciphertext, so naturally the user would be informed the keyword can not have any repeating characters. I figure the English alphabet will be predefined in capitals and lowercase, then the keyword will be read character by character, removing those characters from the alphabet array and then appending them to the end of it (to create the new encrypted alphabet). How to read the keyword character by character, and then removing the corresponding letter from the alphabet. The best I can think is to check each character of the keyword against each character of the array which I'm sure is much more work than I need to do.

View 1 Replies

VS 2008 - Having Label Equal To Be Value Of User Input

Jan 1, 2010

I have a form with multiple panels which hide/show as the user progresses through and inputs data. After they enter data in the first panel, I want a label in the next panel to be equal to one of their inputs. For example, in the first panel they enter their name in Textbox1. They hit next and it hides panel1 and shows panel2. Then I want Label1 in the next panel to be Textbox1 (their name).

View 1 Replies

VS 2008 - User Input Message Box Popup

Sep 26, 2011

Well I'm trying to have a if statement where when the user inputs the Title of the book [Title] then if it contained any letters then this message box would pop up. I also have another if statement where if nothing is there then messagebox would say that please input a name. [Code]

View 4 Replies

VS 2008 Combo Box Remember User Input

Jul 28, 2011

i have a combo box without a list of item now i want to do is when a user input a number or text in combo box the text value of the combo box will be saved and when the user input the same number the combo box will not save the same text value. and when the user logout and login back again i want to load the list of item that he or she inputted earlier in the combo box.

View 7 Replies

VS 2008 Save .txt Based On User Input?

Nov 16, 2010

I have a form with 12 text boxes that a user must fill. I need then by pressing a button to promt for the save directory and save the input as ".".txt file. Moreover i need each line of the txt to correspond to each one of the txtboxes. So the input to the first box will be the first line of the txt file,...the input of the ninth box the ninth line of the txt file.

View 15 Replies

VS 2008 Stop A For Loop Until Have User Input?

Jan 5, 2010

any way to stop a for loop untill i have user input, once the input is correct continue the for loop, is that possible at all?

View 4 Replies

VS 2008 User Input From A Text Box Into Code?

Apr 14, 2010

How do I get numbers typed into a text box to be feed into my code and then the code to be ran?Below is the code that I want the information from a text box to be fed into. With the (0, 50) being the numbers.I will have a form set up like this, A button labeled Generate. 3 Text boxes total, 2 of them side by side with one being low and one high. For example The user will input 5 in the low box at 100 in the high box. Hitting generate the numbers will then be inserted into code and the result being shown in the 3rd text box.

Now what is the code that I'm looking for that will help me take information from TextBox1 and TextBox2 and insert into the (XXXX, XXXX) field in my buttons code?

View 3 Replies

2008 - Getting Input - Finding If A User Has Been Inactive For A Time

Jan 16, 2009

I am trying to see find out if a user has been inactive for a certain amount of time by mouse and keyboard events. I want to be able to find this from windows not my form. I am lost as to where to start. I came across this "GetLastInputInfo Function" but am not sure if that is right and/or how to use it.

View 18 Replies

VS 2010 - Input Validation To Verify User Selected Input For 'cb Length Of Stay'

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

Creating User Input With Textbox.text Input Then Displaying In Messagebox?

Feb 19, 2012

If my Category and Forum selection is incorrect I am sorry and feel free to move it. I'd like to have the users input in the message box that will show. For example: There is a textbox and the user puts in their name as Bob. Then the message box would be: What my main goal is, is being able to include the users input they type inside the textbox inside the message box.

View 6 Replies

VS 2008 - Generating Custom Code For Windows Form From User Input

Mar 30, 2009

How to generate code from user input. In Visual Studio 2008, Visual Basic. My script always begins with:

Code:
function Init(Quest)
Then from here a user would input a quest name, type and zone in a interface using windows forms.
Ex:
Code:
RegisterQuest(Quest, "Kill Zombies", "Heritage", "Firestorm")
end
This part a user would enter in his interface what would an NPC say if accepted.
[Code] .....

What I need is a few text boxs that a user can input "Kill Zombies" or whatever they like and when they push a generate button it will create a file with a .quest extension. All of the code remains the same except for the quotes that would be the user input from the interface. Basically everything in quotes can be changed by the user in an interface. I have created my own functions for when a user accepts, deny and complete a quest. The user just needs to input what should happen then click a generate button to throw it all together as a .quest file to be saved in his or her quest folder for the server to call on later.

I also have many other functions like:
AddQuestRewardFaction --- (Quest, Faction ID, Amount)
AddQuestRewardCoin --- (Quest, Copper, Silver, Gold, Plat)
AddQuestStepObtainItem --- (Quest, Step ID, Description, Quantity, Percentage, TaskGroupText, Item ID(s))
Etc

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.

View 4 Replies

Get User Input Data Into The Loop Of The Input Box?

Nov 3, 2011

Option Strict On Public Class Form1 Private Sub btnDistance_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnDistance.Click 'The btnEnterSpeed click event accepts and displays up to ten speeds from the user'and then calculates and displays average speed

[Code]...

I cannot figure out how to incorporate the number of days into the input box then get it to loop and count the number of times the User inputs in the number of days. Then I have to incorporate it into the equation to get the total distance D = MPH * Hours. What I have right now wil not count up the number of days and locks up after I input one number and will not add anything to the listbox. Because I also have to make sure that they cant add nonnumaric values and the number of hours per day cannot exceed 20. I have put things in and taken them out but it has been 2 days and I am lost now

View 1 Replies

VS 2008 - Validation Functions / System Displays A Message Telling The User To Input Any Fields?

Apr 1, 2010

iam currently working on my uni project and i have encountered a problem with valadation section.My system displays a message telling the user to input any fields that they have missed out on, listing the name of the field. However as these IF functions are in order the user must input the data in the order of how it is in the code. for example if the "consweight" is inputed and the calculate button is pressed, it thinks that all valadation above it has occured, when those fields are still empty.

[code]...

View 1 Replies

Visual Basic Input User - Save What The User Types In The Vb Code

Jul 14, 2009

I'm trying to save what the user types in the vb code Dim user as Inputbox("") for example in a .txt file i can save the textbox and listbox but i cnt figure out how to save the inputbox i really need this to be saved the most.

View 7 Replies

Auto-fill A User Input Control With The User's Windows?

Feb 11, 2011

I am creating a form for work where managers can report when they find a customer's personal information laying around on a desk (we work at a call center where agents answer calls for a wireless cell phone provider, so we take personal information security very seriously). Anyway, I am wondering if there is a way to have a text box autofill with that manager's windows username (since they will need to be logged into their own profile to use the form).

View 2 Replies

User Input - Tje User Can Type In Data To Such A Parts QTY Cost

Mar 11, 2010

I need something tje user can type in data to such a parts QTY cost etc. There are no predefined parts list so the user can enter any part name/Number and there is no limit to amount of parts that can be entered.

Does anyone have any idea what might be useful. It was thinks of a listview bu i can't see that you can type into that. I cant use comboboxs because there are no predefined list and i know there is some way to generate text at runtime (i think) but i don't know how to do it and i would prefer a clearer approach.

View 3 Replies

Declare A 2D Unlimited Array?

Apr 30, 2012

I Declare a 2D Unlimited array.My code:

Dim array As String(,) = New String(,) {}
array(0, 0) = "top left"
MsgBox(array(0, 0))

The problem is the msgbox shows nothing.

View 1 Replies

How To Make An Unlimited Treeview

Apr 27, 2010

I want to make a treeview where users can add information and folders in it.I managed to do code for an xml document so that the users can have up to 1 folder, but I want to have moreIs it possible to have an "unlimited" xml/treeview? Like in IE, Safari, Google Chrome, you can make unlimited folders and it will still save; how can I do that?

View 7 Replies

Make An Unlimited Treeview?

Apr 28, 2010

I want to make a treeview where users can add information and folders in it. I managed to do code for an xml document so that the users can have up to 1 folder, but I want to have more Is it possible to have an "unlimited" xml/treeview? Like in IE, Safari, Google Chrome, you can make unlimited folders and it will still save

View 3 Replies

Set A Value For An Unlimited Array Of Integer?

Sep 3, 2011

I want to define an unlimited array of integer and add values to it but I have some problems.

I'm using this code (for example):

Dim I() As Integer
I(1) = 1

View 4 Replies

Treeview With Unlimited Node?

Oct 12, 2011

I am trying to rebuilt the BOM system from an existing BOM application. The table i used was the existing table and cannot be modified as it is contain around 20000 of part no there.What i am going to achieve is the structure view of the BOM using the treeview control. I want it to have as many nodes as the BOM required which different from one to other part no.Here is the structure of the table.

id
model_no
parent_no

[code].....

View 6 Replies

Make An Array With Unlimited Range?

Apr 30, 2012

How i can make an array with unlimited range in VB.NET and also get the number of variables containing?

I tryed:

Dim _items(,) As String
_items(0, 0) = "hy"
_items(0, 1) = "hello"

[Code].....

View 1 Replies

Parsing Xml That Have Unlimited Subsection To Dataset?

May 16, 2012

I have unusual format of XML as below example

<mainmenu>
<menu caption="File">
<menuitem caption="New" tooltip="Create New File" shortcut="Ctrl-N" Action="New">

[code].....

View 1 Replies

<asp: > Vs <input> Sending An Email To User Input Email. VB?

Feb 24, 2011

I have 2 pages, one is HTML and the other is ASPX. In the HTML I am able to get input from a user and then process a return email to them.The HTML looks like this:

<input type="text" class="input" value="e-mail" id="txtEmail" name="contactEmail" onclick="SelectAll('txtEmail');" >

[code]....

View 2 Replies







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