Multiple/massive User Input?

Jun 22, 2010

i am developing a small windows application in vb.net using visual studio 2005.i want to design a form where user can enter multiple records.like we want to design a "bill" form where user can create the bill for any no of items.there are 4 colmns in it : item no , item name , quantity , price.

my requirement is that if user user a particular item from the list of item in first column then the column "item name" get filled automatically from the database. then user can enter qty , price for that item.on clicking a save button all the data entred by user should get saved in a table in SQL database.

now user can create bill for 1,2 or more items. so no of rows are variable.

HOW could i achieve this using vb.net and SQL server 2005 as databse.

View 2 Replies


ADVERTISEMENT

Associate Multiple User Input Fields Using A For / Next Loop?

Mar 20, 2012

VB.NET 2008 windows app form.I have a groupbox with several checkboxes, comboboxes, and textboxes within it.With the help of StackOverFlow members, I've learned how to use the FOR/NEXT loop to find all checkboxes that are checked.[code]As you can see by the code sb.tostring will print every checked checkbox name on its own line.How do I associate the proper combobox.selecteditem, textbox.value, and checkbox name to print out on the same line.When I say proper...example; checkbox=pen, combobox=color, textbox=quantity.Let's say my other checkboxes are different items and the rest of the boxes are the same.

View 2 Replies

Save User Input From Multiple Textboxes To Text File?

Sep 18, 2010

Is there a simple way to save user input from MANY controls (textboxes, comboboxes, etc...) to a text file? When I say 'MANY', I am referring to at least 580 textboxes and several dozen comboboxes.

I may be able to accomplish this using the StreamWriter Class, but doing this individually would take quite a long time. I suppose I could also change all text boxes to richTextBoxes and save to .rtf. It seems like this would be even more time consuming.

Surely there is a simpler way to do this 'globally', perhaps with an added single line of code that points (and saves) to a preset or created text.txt file whenever text is added or changed in a textbox or combobox throughout the program.

View 7 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

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

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

Prevent Massive Shadowing Of Methods?

Mar 4, 2010

I'm in a project where it's pretty much my first time doing all the architecture myself,and I'm running into a frustrating situation. My architecture for forms seems to be correct from a heuristic perspective, but I don't think its implementation is correct.

My architecture is thus:
Base Class: OrderForm
Child Classes: PurchaseOrder, Invoice, Credit

[code].....

View 4 Replies

Massive Error Occurred For No Reason Nullobjectrefernce

Jun 17, 2012

I finished a database access application that accesses and retrieves data from a database. It was working perfectly fine until i was commenting the code and i decided to test the program again and i found that across all my forms i was getting the same error which is the[code]...

View 3 Replies

Memory Management When Insert Massive Data To MSSQL?

Apr 23, 2009

I have 200,000 rows data need to be inserted into MSSQL 2005 express. I have 4G memory. From the beginning, there is 2.0G used. Then, I use microsoft text driver to load text file into datagridview. Memory rise to about 2.8 GB.I start write data row by row from datagrid view. Memory usage keep rising , then OutOfMemory exception is catched.I try to use GC.Collect and for System.Data.Odbc.OdbcConnection , I also try .Dispose(). But it is no use.How can I keeing the memory within about 3.0GB for this usage ? I monitor .vhost.exe. It rise to more than 1G.

View 2 Replies

.net - Massive Memory Leak When Binding ItemsControl To An Observable Colleciton?

Feb 21, 2010

I have an ItemsControl in a ScrollViewer. The ItemsControl.ItemSource is set to the Observable Collection.Every time I add an item to the collection, my application nearly doubles in memory usage and eventually after enough adds.

Here is a rough sketch:

<Scrollviewer Name="MyScroll">

[code]....

Using ANTS Memory Profiler, I can see all the class instances in my App. When I start the program, I have 150 instances of TextBox (There are three in the datatemplate). When I add a studyunit to the collection, I have 303. Adding another leaves me with 456... 609... etc.The studyunit objects inherits from dependency objects and I am only binding to its dependency properties. I made the studyunit a series of dependency properties due to this article: [URL], but it didn't fix anything.Update 2/22/2010. Here is the actual code (code above was very simplified and created from memory)

Private Sub ObservableCollectionChanged(ByVal sender As Object, ByVal e As System.Collections.Specialized.NotifyCollectionChangedEventArgs)
If e.Action = NotifyCollectionChangedAction.Remove Then 'q removed

[code]....

View 1 Replies

User Data - SQLCE Files - One Database With Multiple User On PC

Mar 3, 2010

I'm designing a PC-based app that has a little local database. I'm using VB.NET with SQL Server Compact Edition. The user will only ever have access to one database file, because it's all about storing a user specific data. However I'm thinking of the situation where there could be multiple users that access the PC, each with their own Windows account. So ideally I'd need separate database files for each User.

I'm not sure how to implement this. I was hoping to deploy the 'empty' database as a ClickOnce deployment, but I can't see how I can have a database per user doing this. Also I'm not sure where to store the database files anyway. perhaps in MyDocuments for each user? Or perhaps I need to stick to just one database, but add a 'User' column into every table, so it can hold data for every user. I didn't want to do this though - because I wanted to keep the nice separation between the data offered by physically separate files.

View 3 Replies

Way To Accept Multiple Input

Jan 31, 2012

In VB.net ,how to accept multiple input? I want to enter marks of a student in 5 subjects to find percentage of marks,but i am not able to understand which vb.net statement i should use to take input in a single line

View 4 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

Can't Input Multiple Rows In SQL Server?

Mar 10, 2012

Somebody knows how to insert multiple rows in SQL Server from Vb.Net?

View 1 Replies

Take In Input From User?

Sep 19, 2011

I have a table in my DB that needs to be updated. Whats a good way for a user to enter these 50 or so changes and have it update the db.

View 1 Replies

Best Way For Application To Get User Input?

Jun 8, 2009

My winforms application will display 100 different names, and I will need the user to enter a number 1 through 4 next toeach name.I will then store this data.I know I can use the spreadsheet control,but is there something much simpler that I can use? Maybe an array of textboxes or a datagrid?

View 3 Replies

Find The Last User Input?

Jul 27, 2005

I am trying to have my program time out if the user lets it sit idle for an amount of time. Is there an easy way to find the last user input? I am using VB.NET.

View 4 Replies

Get User Input Into Array

May 17, 2011

In my program, I need to have the user input a list of numbers separated by commas. How would I go about storing those numbers? Would I put them into an array? If so, how?

View 5 Replies

How To Cancel User Input

Sep 19, 2010

If Not IsNumeric(textbox1.Text) Then
KeyAscii = 0
End If
I learned in MSDN and wrote those code,but it doesn't work. This code " KeyAscii = 0" it's not correct, I just want to cancel the input, for instance,if user input 1a, then "a" will be not inputted into textbox, but "1" will leave.

View 6 Replies

Limiting The User Input?

Nov 21, 2010

sample of codes that i use to insert the data in my table, it works just fine but the problem is that i cant limit my user for example from entering null values, or integers into string or strings into integer,,,,, I also ask for assistance on how to handle any errors in my system from crashing.

Dim conn As New OleDb.OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Application.StartupPath & "MOMSTEST.mdb;")
Dim Comm As New OleDb.OleDbCommand

[code]....

View 9 Replies

Pause For User Input?

Jun 26, 2011

On my main form i need to pop up a sub form and await user input before proceeding. I am able to pop the form but not able to pause code excecution until the user input is there. Here is what i have tried:

If chk_athor_cobb_scholi.Checked = True Then
Vselect.Visible = True
While Vselect.ex2 = False

[Code].....

The problem of course is that the while loop causes a crazy infinite loop and locks the program down during excecution. How do i await the user input?

View 4 Replies

User Input And Multiply?

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

User Input In TextBox?

Aug 7, 2011

How can I get my app. to remember the text that was enterd into a TextBox by a user?

View 3 Replies

User Input Not Updating In New Dgv Row

Nov 4, 2009

I have followed a tutorial at url.... It is a very good tutorial but it is also a little dated. Most people who visit it praise it to high heaven so I decided it was a good place to start as an absolute beginner to programming. (I have teamed it up with Dan Mabbut Vis basic tutorial at about.com and joined DreamInCode in order to learn what I can accomplish with Visual Basic 2008 Express ). I am up to part 6 of 7 but keep going back to part 4 because there is one aspect I just cant work out.I am creating a form which logs staff in or out of work and allows staff to include a message with their ( at work /away from work ) status details on the form.The form is supposed to update a users status in a new row when they click a button. In my form the rows per user are being over-written with the updated information - it is not being written in a new row. There is a login form which precedes the staff status form - this has a little relevant code re calling the user info from the database but I think my problem is related to the insert statement in the middle of the below code.[code]

My code has changed quite a bit since the above as the form has progressed but the problem started at the stage above and has not changed with the forms progression. Every other aspect of staff update info is working well in my form - just not in a new row.I am going bald - The tutorial was written for VB2005 Express - I am using VB2008 Express though it has not made too much difference to the tutorial.

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

Wait For User Input

Aug 4, 2009

I am learning Visual Basic from a book and at the end of each chapter the book gives tasks to perform. The task i am currently on involves creating a simple game called "Pick up Sticks". The premise of the game is to choose a starting number of sticks at the beginning, say '55'.

[Code]....

View 1 Replies

VS 2008 : Have Multiple Threads Input Data Into The Same Arraylist

Dec 20, 2009

I want to have multiple threads input data into the same arraylist, so they would need to share it. If this is possible how can I do this task?

View 1 Replies







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