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


ADVERTISEMENT

Detect Data Type Of User Input?

Mar 15, 2012

How do I determin if a user has given me what I am asking for in terms of data type.

Example if my prompt to the user say "Give me a number of double data type"

How can I tell that the user entered a double xx.yy?

Or if I am testing for integers and I get user input ABC.GH?

I know about CDbl and CInt and CStr but these don't work unless data is provided. Also how do you test if the conversion took place? Also how do you differencate between 12.00 being integer?

View 4 Replies

What Data Type Will Allow The User To Input 0 And Allow The Mathematical Functions To Work Properly

Mar 29, 2011

I am currently using double data types. The problem I am encountering is that sometimes the user will have to input a value of 0 in the required text box and this creates an error. My question is what data type will allow the user to input 0 and allow the mathematical functions to work properly. Decimals maybe?

View 8 Replies

Text Box Formatting - Force User To Use Specific Type Of Input

Dec 16, 2009

I have a text box labled QTY, which feeds the QTY column on a datatable. the table then is ran through a function that takes the data and converts it to a string which my production machine can read. My problem is this, and its probably really simple (these problems usually are) how to i force the user to use a specific type of input on the txtbox so they would have to put the QTY in the format of 01 02 03 etc etc, i have it set to default to 00 but i want to force the user to haver to input 2 chars.

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

Using A RichTextBox To Allow User Data Input?

Apr 16, 2009

I am using a RichTextBox to allow user data input.I need to allow a user to select all, and change the font value of the text within the RichTextBox.

View 1 Replies

Create A Graph Where The User Can Input Data Into Textboxes And Then Plot The Data?

Jun 15, 2009

I'm just trying to create a graph where the user can input data into textboxes and then plot the data. I am attempting to use Zedgraph, but open to other suggestions. The program below creates a plot, but it won't update when the textboxes are updated.

Imports ZedGraph
Public Class Form1
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

[code]....

View 7 Replies

Generate Data On Basis Of User Input?

Sep 30, 2009

I want to create a page in asp.net website . it has to have one text box . the user enter the productcode in the textbox and click on search . when the user click search i want to display all the information about that product from product table.

[Code]...

View 2 Replies

Send Email To User With All Data Input?

Dec 18, 2010

I have two pages the first one will receive all data that are required from the user such as username e.mail and then the same page will do the calculation but when clicking on result button two things should happen: 1-the result and all user inputs should be sent to the second page 2- the same information should be sent to the user email as the e.mail messege

View 1 Replies

User Input Data From Textbox Into An Array?

Mar 8, 2009

I'm trying to make a program where user can input data from a textbox into an array and when the user hit the enter key, it compare it to a data grab from a text file. Here is my code so far:

Private Sub TextBox_KeyDown(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TextBox.TextChanged
Dim input As String

[Code]....

I got the part where the program can graph data from text file and put it into an array called "varia3". The part I could not get is allowing user to enter data into the textbox. When I run the program, the sec I try to enter a letter or number into the textbox the program ended.

View 2 Replies

VS 2010 Validating User Input Data?

Apr 12, 2011

So I'm developing a Windows Forms Application in Visual Basic 2010. The user searches for data and fetches results, updates fields and some other CRUD operations. I want to provide a user input validation. Usual stuff i.e. some fields need to be always numbers>0, others need to be non-empty in order to avoid Null access on some objects and others just need to be some fixed strings.

[Code]...

View 3 Replies

Create And Write User Input Data To XML Through Data-set

May 10, 2010

I have used following code to create and write the user input data to XML through Dataset. Hope it can be understood by looking the following code:[code]But the above code is not working. it is not writing the value in XML file.

View 8 Replies

Return Data From An Access Record From User Input?

Feb 17, 2011

It's been a good few years since I dabbled in VB and I'm very very rusty so any help would be great! What I'm looking to do is search an access database with user input and display the relevant record.I have a single table set up in an access database called school_info with the following fields and data:

Tres________DfE________Name_________Type
001________1234________School 1________Primary
002________4321________School 2________Secondary

[code]...

I've linked the database to my new project, connected the database and added the 4 fields to my form. When I run it, the data shows in the boxes fine.The Tres and DfE fields are show in text boxes on the VB form, and the school and Type are show in labels. What I really want to do is be able to manually type in either a Tres or DfE number into the relevant text field and have the other labels auto populate with the relevant data that's stored in the database table.

View 9 Replies

Simplest Method Of Saving User Input Data?

Jun 9, 2010

So far i have a really basic form application that allows a user to enter some information and does a small calculation, displaying all of the information gathered on the final form.

Im looking to try to save this information but have no idea where to start,im trying to just take whatever is in my text field and put it in a table row. I created a one table database in Access and linked it to the form with a button to try and save it.

I thought it would be as simple as tablename.rowname = textbox.text or something but apparently not and all ive ended up with so far is this:

Private Sub btnSave_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSave.Click
Me.Validate()
Me.TblCustomerBindingSource.EndEdit()
Me.TblCustomertableadaptor.Update(Me.DatabaseDataSet.tblCustomer)
End Sub

I dont even think im close, ive just been fiddling with the predefined code in Visual Studio, trying import ect but the button just doesnt seem to do anything.

View 2 Replies

Take Data User Has Input On Form And Put It Into Access 2007?

Mar 11, 2010

i have a access database with two tables, one for customer and one for booking.

I then have a form application i made in VS 2008 which lets a user enter details such as their name phone number ect into text boxes.

All of the information the person enters thoughout the program is shown via labels at the end, all on one form.

Would it be possible to then have a button that when clicked saves all of this information into the access tables into the correct columns, im sure it must be possible i just don't really know where to start.

View 14 Replies

VS 2010 - Allow User To Input Data Into Spreadsheet / Table

Apr 13, 2011

I've worked out how to display charts in VB 2010 Express, but now I'm needing the user to input data into a spreadsheet/table that will be used within the program. I know that table is no longer available and neither is the OWC11 set. Is my remaining option then to use DataGridView? I know it is SQL based and I don't have much experience there yet, but I didn't want to commit to it if there is another method that would work just as well. The values that are put in by the user does not need to be preserved.

View 3 Replies

Windows Forms - Data From User Input To DataReport?

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

SQL Stored Procedure - Insert Data Depending On User Input

May 13, 2011

I created a sql stored procedure that will insert data for me depending on user input. Now I would like to know usually I would do something of this nature

Dim con As New SqlConnection(connectionString)
Dim cmd As New SqlCommand("usp_userinput", con) 'references connectionstring and calls store procedure
cmd.CommandType = Data.CommandType.StoredProcedure 'sets default to be storeprocedure
lblMessage.Text = String.Empty
With cmd.Parameters
If (Session("UserInitials")) IsNot Nothing Then
.AddWithValue("@UserInitials", Session("UserInitials").ToString())
End If
End With

That is just an example how i usually approach calling the stored procedure in vb. However for this particular form I am going to have 50 or 60 textboxes which each one would require a session state variable.Seems a little tedious to have to create a session state variable for each textbox on the form.

View 1 Replies

Retreiving Data From Excel With User Defined Input That Is In Text Format?

Jul 7, 2011

The problem is I am able to extract the data by giving cell reference like: TextBox1.Text = objWorksheet.Cells(5, 2).value

But I want to select a row as per input given by user and want to extract data from that row.

The input given by user is in text format, in my case name of employee. And I have to extract address of that name.

[code]...

View 1 Replies

Let The User Choose A Multiple Amount Of Car Parts?

Jul 10, 2011

i am currently developing a small basic program that will let the user choose a multiple amount of car parts and it will add it up and display a quote at the end.

View 7 Replies

Values For User-created Data Type?

Sep 29, 2009

I'd like to create a user-defined data type in VB.NET but don't know how to do it.Ta say there's a variable to control the action of a timer control. The possible actions would be "no action", "run timer", and "stop timer." I could do this with an integer (e.g. 0=no action, 1=run timer, 2=stop timer), but I'd rather create a data type so that the options are more explanatory than a simple integer. Like so....

Private Timer_Action as MyDataType
Timer_Action=MyDataType.RunTimer

View 3 Replies

Define Possible Values For User-created Data Type?

Mar 10, 2011

I'd like to create a user-defined data type in VB.NET but don't know how to do it.Take an example.......say there's a variable to control the action of a timer control. The possible actions would be "no action", "run timer", and "stop timer."I could do this with an integer (e.g. 0=no action, 1=run timer, 2=stop timer), but I'd rather create a data type so that the options are more explanatory than a simple integer. Like so....

Private Timer_Action as MyDataType
Timer_Action=MyDataType.RunTimer

[code].....

View 14 Replies

User Defined Data Type Versus Class?

Feb 9, 2010

I am in the process of migrating from VB6 to VB 2008. In a pixel grid system I have thousands of cells with about 15 properties each. In VB6 I employed the user-defined datatype "udtCell()" as my array structure. Is this still a good approach - or should I perhaps make Cell a class?

View 2 Replies

Data Type Validation - Get An Invalidcastexception If The User Inputs A String

Nov 25, 2009

Im trying to improve some apps ive written, the first is a console app... Im trying to get it so that i wont get an invalidcastexception if the user inputs a string, when the variable is type "Double"

[Code]....

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

Multi-user Application - Updating All Clients When A User Updates Data (push Vs Pull)?

Aug 26, 2009

I am designing a fairly small application to manage a waiting area for a clinical department. There will be a receptionist who books appointments and updates exisiting appointments to say that a patient has "Arrived". In seperate rooms will be nurses who call patients who have "Arrived" and update the appointment as "In Session" and finally as "Discharged". The appointments are viewed in a flexgrid with nurses across the top and time down the left, patient names are displayed at the relevant times and the cells are shaded a colour to represent the current appointment status ("Booked", "Arrived", "In Session" and "Discharged").

I am using SQL Server as the back-end and Visual Basic 6 (I know) as my front-end.I have been told that there will be 2 or 3 nurses plus the receptionist logged in to the system but I would like to cater for growth.My question is what is the best mechanism to use in order to reflect the status change made by one user on the screens of the other users currently logged in?

I have been thinking about using a timer to refresh the data at a set interval but I do not want to keep hitting the server excessively (although what is considered excessive? we would be talking about a call for data every 60 secs per user). Plus the server could be serving data for many other applications so this is another consideration.Alternatively I have been thinking about sending some kind of message via Winsock to the other users notifying them of data changes as they happen. I don't have a lot of experience with this and am concerned about clients not receiving messages and users seeing old data. It also seems strange to me that once the days appointments have been retrieved from the database that "in theory" a client could go the whole day without having to query the database again to pick up changes - kind of scary.Some information on the data:We would probably be looking at around 100 appointments per day We capture patient name, date of birth, date and time of appointment and appointment status.What is the standard approach / best practice for this kind of scenario?

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







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