Checking User Input For Requirements?
Mar 30, 2009
I have text box in my program where I need the user to enter at least six characters. They also need to include at least one alphabetic and one numeric character.My idea is to create a loop that uses the IndexOf string manipulation to check each character. I'm familiar with the IsNumeric method .
View 4 Replies
ADVERTISEMENT
Apr 2, 2011
What is the method call for checking to see if data was entered into a field? I am wanting a site to display an error message if no data was entered.
View 2 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
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
Dec 4, 2009
Can I set this function so that if the local settings.txt exists, it will NOT be overwritten unless the mapped file is newer?
If IO.File.Exists("C: empsettings.txt") = False Then
IO.File.Copy("K: empsettings.txt", "C: empsettings.txt")
ElseIf IO.File.Exists("C: empsettings.txt") = True Then
[Code]...
Currently modifying a program that is being used by several staff. Each time they restart it, it starts the latest build.
I have a settings.txt file that is needed for the latest build(not on all pc's yet, original version has the settings written in the code) and updated as needed.
If local PC doesn't have settings.txt, it is copied, if it does have settings.txt it gets overwritten by the mapped copy on each run.
Wanting to let users keep their 'personalized' local settings.txt, unless I add a new feature to the program that requires a change to the mapped settings.txt file.
View 2 Replies
Mar 8, 2009
I have been trying to check if a user has input a specific time format into a textbox.For example
1- User enters time in hhmm format
2- Checks the input
3- If wrong, MessageBox.Show("Need hh:mm time format")
I have only used IF statement with IsNumeric to check for number input but was unsuccessful with various attempts I can think of for checking a time format as I need Option Strict On and have the following error: Option Strict On disallows implicit conversions from 'String' to 'Date'.Is there a way to like check if the hh:mm has the ":" separator too?
View 5 Replies
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
Aug 8, 2011
For example, I clicked the Add Text box button, so it added 3 text boxes in the form (I used Dynamic text box so it can add multiple text box). When I input data to one of those 3 text boxes and then Save button has been clicked. It should checked whether the dynamic text boxes are empty or not. If there are empty text boxes, then saving data to db should not be continued and display a message telling the user that empty field(s) are invalid.
In the code below, it saves the data even if there are empty text boxes and I think because it is in the for loop, it checks the text boxes one by one and repeatedly displays the message box that I coded.
Here's the complete code:
Imports System.Data
Imports System.Data.SqlClient
Public Class Form3
[Code]....
View 5 Replies
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
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
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
Jun 9, 2009
it is possible to run MS .NET with the following hardware configuration.
Celeron 1 GHz Processor.
512 MB RAM (SD).
40 GB Harddisk.
Windows XP.
If not then please suggest the minimum and best possible alternatives.
View 7 Replies
Apr 8, 2012
I have written a console app that works fine on my computer. I need it to run on a computer that does not have the complete install of Visual Basic 2010 Express. What are (or where do I find) the steps to install the required files on the second computer?
View 2 Replies
Dec 7, 2009
what the system requirements need to be for VS2010? I'm running beta 1 with 4GB internal and I find it very, very slow I can't find any requirements at the Microsoft site.
View 3 Replies
Oct 1, 2009
I tried to do a test install yesterday on a laptop running Windows Vista Ultimate and I was unable to get it to run without an internet connection because it needed to download additional software. My application may be installed on a client computer that does not have an internet connection and I need to be able to provide this extra software on disk.
View 4 Replies
Dec 9, 2009
What code to use in a payroll calculator I am making. The requirements are
1. Name of employee.
2. number of hours worked
3. pay rate
4. percentage of state tax.
5. percentage of federal tax.
6. percentage of FICA tax.
How I would go about this.
View 3 Replies
Nov 27, 2009
Dim Principal As New System.Security.Principal.WindowsPrinipal(New ystem.Security.Principal.WindowsIdentity(My.User.Name))I'm using My.User.Name in the example. I'm aware the My.User namespace has a IsInRole method, however, I well need to check a list of users and not just the current user so can't just use that or WindowsIdentity.GetCurrent. This exception is being thrown when declaring the Principal variable:"There are currently no logon servers available to service the logon request"
View 5 Replies
Sep 3, 2009
Checking User control's properties?
View 4 Replies
Dec 2, 2009
I am attempting to keep user inputs into our application as clean as possible. One way I am attempting to do this is not allowing incorrect data type in fields (not allowing alpha characters when expecting numeric values)I found and implemented the following code:
Private Sub txtSocial_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles txtSocial.KeyPress
Dim UserKeyPress As Char = e.KeyChar
Dim isKey As Boolean = e.KeyChar.IsDigit(UserKeyPress)
[code]....
View 1 Replies
Aug 1, 2010
Ok I am making an RPG that is checking for collisions whenever the user is walking...Basically i made an array of points in which the user is not allowed to access and if they do try to access them it will not walk...
Public Class cityshop2010
Dim abletomove As Boolean = True
Dim moveto As Point
Dim badpoints(1) As Point
[code]....
with that code there I want to be able to say badpoints(0-50) or badpoints (0 to 50) whatever... or even badpoints(*) for any badpoint....How do i make it check all the badpoints?
View 2 Replies
Sep 4, 2009
Do something like this
-User Opens program
-User goes to settings.(Settings has a bunch of RadioButtons)
-User Customizes settings, checks certain buttons. (How would I pop up a msg when the user clicks "Ok" with out checking something?
-When "Ok" is pressed, it will "save"
-When settings is opened again, the same RadioButtons will be checked.
Right now, if I exit the settings form, and open it again, the radio buttons are cleared
View 4 Replies
Jan 30, 2012
I making an "sign in" application for checking email address with username and password as input.As output it will show me msgbox with content "Your email and password are correct!" or Not.There is a code:
Code:
Imports System.Net.Mail
Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click[code].....
View 5 Replies
Feb 5, 2012
I making an "sign in" application for checking email address with username and password as input.As output it will show me msgbox with content "Your email and password are correct!" or Not.
[Code]...
View 1 Replies
Apr 15, 2009
instrruct me how to access a password protected mdb from VS 2003 VB.net
View 4 Replies
Sep 28, 2011
I am currently trying to develop a chat application which will work on a LAN, however encountering problems with with adding a user through the registration form, always getting the result :: "Datatype mismatch in criteria expression" I've tried checking and cross-checking the datatypes used in both the database(its a .mdb database,, created in Microsoft Access)this is the code i am using:
dim con as new oledbconnection
dim cmd as new oledbcommand
Public Sub UserReg()
[code]....
everything is done,, such as opening the connection and defining teh data reader, etc as you can see from teh code(which was derived from another question but i made edits to suit my use for it)I also have problems with checking wether a user is online. obviously i will be referring to the table to do that using something like
cmd = new oledbdatacommand("SELECT * FROM Users where isOnline = "Yes")
dim sdr as oledbdatareader = cmd.execute reader
whence it will show a list of all the currently "Online users" but i do not how how to quite refer to it?
View 4 Replies
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
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
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
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
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