VS 2010 Convert User Input Field To MD5?
Nov 14, 2010i want to convert the user input field to MD5 Algorithm
View 2 Repliesi want to convert the user input field to MD5 Algorithm
View 2 RepliesI 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 Repliesis there a way to accept user input and convert those inputs into command? e.g. i have a textbox that can "test" commands. when i type this into the textbox, it should run the command:
dim a = "asd"
msgbox(a & "fg")
I know there are work-arounds like using a Select Case, but in my situation, it would make things a lot easier... especially since I won't know exactly what will be entered. I can't force the user to use a combobox or anything like that either, because it is going to be unique code for every situation. If there is no way of doing this, I will figure something else out, but it will require a lot more work.
View 1 RepliesHow can i limit the user to input only one period in textbox cause in my textbox the user can input may periods on it??
View 3 RepliesI have a text box that I only want the user to enter A, B, C or D (it'll give an error msg if anything else is entered)
View 6 RepliesOk, as you can see I am totaly new with Visual Basic. I have learned all those loops, if&else statements, byval, byref and etc. But now, I want to create this kind of application. I have 3 textboxes. One will contain URL, second username, and last password. There is a listbox also and a button. I want when user add a values inside textboxes , that values go to listbox as one variable and then save those settings for user so when he start up application again there are saved variables inside listbox. I just dont know how to do that.
View 11 RepliesSo 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]...
How do I prompt the user to input elements in a two dimensional array? And how do I then save the output?I've figured out how write and print a program where the program provides the elements (see short version below), but I can't work out how to get the user to input the elements instead.
Solfa(0, 0) = 11
Solfa(0, 1) = 12
Solfa(1, 0) = 21
[code].....
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 RepliesI have DataTable, and is bound to DataGridView. So, when the user inputs some values in 4 columns, it would calculate the sum and put it in the last 2nd last column.
Here's the code that I'm experimenting:
vb.net
Private Sub DataGridView1_RowLeave(ByVal sender As Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles DataGridView1.RowLeave
Dim i As Integer
Dim intTotal As Integer = 0
For i = 5 To DataGridView1.Columns.Count - 3
[Code]...
So, basically it should sum up certain columns when the user enters numbers into it and then display it in the last column.
I had an Excel spreadsheet which I put in MS Access (database). I then took that database and used that as a source in VB to create a GUI for. In VB I have an input text box to search and pull of different fields. I created some queries for searches in from the text box. I have have a dataset view of the data which has the binding navigator (add, insert, save).
The problem I have is that when I hit the '+' for add to add information and then click the 'save' button in the binding Navigator, the information I put in does not save. I check this by exit out of the program run (debug to open the app) and then open it back up to search and/or check for the new information I put in. My overall goal is to create to publish the final code and use an a standalone program.
Also, as another option,(I would like to learn) Is there a way to map VB directly to an Excel file to have the user input information and save to the excel file.
I have a little situation and i am not sure of the best way to do it.
- My program lets the user select a folder
- From that folder i need to select all .png files
- One by one i need to load them into a picture box, await a button press and then go to the next image.
The above that i have typed in red is where im not sure what to do. The other steps i can do.
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 RepliesOption 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
Ok a newbie question that I just can't find the answer to:I created a simple form with 3 textboxes and have a problem using a barcode scanner to read data in to the form. The scan gives me the correct data, but it appears in VB2008 express the CRLF get absorbed and doesn't go to the next text box. In fact hitting the enter doesn't do it either, while the tab key does.
If I scan to notepad, wordpad, etc. the CRLF causes the cursor to drop to the next line, so I know the barcode scanner is programmed correctly. What should I be looking for to have the scanned data cause focus to go tot the next textbox?
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 RepliesI'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 RepliesI'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 RepliesI 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 RepliesI 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.
I am having trouble catching getting the currently active text input on a 3rd party window.
If I use GetForegroundWindow it returns the handle of the main process of that window.
webbrowser1.document.All.Item(f_id).InnerText = f_data
f_id (input field id) , f_data (set data)
it can work
but
f_data=webbrowser1.document.All.Item(f_id).InnerText
f_data cannot get anything?
How can input number to database where my field in database data type money.[code]...
View 5 Replieswhat I'm trying to do is setup my browser so that when I click an input field like a username, password, etc I would have a screen pop up where I can assign the "id" or "name" of the tag to a variable. Here is a screenshot of what I am trying to do. screenshot.jpg I am able to create those pop up boxes using a custom Content Menu Strip. Here is the code I have behind the context tab
[Code]....
the following sets my stage
vb.net
MasterPages
Usercontrol with defined events
This is what my usercontrol looks like:When the user clicks the 'Approve' button, an event is fired in the usercontrol that is then intercepted in the main page to do custom code (database update, mails etc...)
[Code]...
I download a file into access. One field contains one to many numbers always separated by a colon and a space: I have no control over the download. TheNumbers have a 1 to many relationship to a customer. Each number must then be verified against two separate reference files, and if the numbers match the description related to the number will be displayed.I'm just learning visual basic. I've made the changes manually (yuk-this took forever); I've tried various string/conversion commands; I've taken the data and placed it into excel and tried to manipulate it, without success.In this case is always numeric. In another field, similar problem, it's a combination of text and numbers.
Example: Cust# TheNumbers
99 1234; 12345678; 123123; etc...
88 87654321, 345654, 98989898. etc..
The numbers can vary in length and quantity. For each customer each number must be loaded into one field.
Example outcome:
Cust# TheNumber
99 1234
99 12345678
[code]....
I can get the numbers to convert the input works right dispalys in listbox just wont loop been at it for two weeks It only ask for store 1 values it displays it but it doesn't prompt for the rest of the stores values it should be 5 i tries for 1 to 5 at the top of the statement but that didn't work either.
private Sub btnDisplay_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnDisplay.Click
Dim strvalue As String
Dim intcount, intsales As Integer
[Code] .....
I am trying to convert my DB field OLE Object as Bitmap into a Picture Box. In my DataBase there are 2 fields
1) Text
2) OLE Object (bitmap)
I am having problems trying to get the MS Access Database to equal the picture box. What I have so far is
Private Sub FindChemical()
Dim intDataBaseIndex As Integer
Dim rowIndex As Integer
Dim FieldRow As DataRow
[Code]....
How do I convert input box information to the listbox in visual basic I'm trying to display my information in the listbox as shown vehicle speed : (the number entered here) time traveled: ( number of hours entered here)
[Code]...