Test An Answer To A Simple Addition Sum That Is Input From The User To One Have Stored For The Question?

May 22, 2009

i am trying to make a simple Vb program for children to do simple maths, now im not sure im going about it the right way, i have stored all the questions in a database and have called them up to the form and that is working fine, i cant seem to get the right code to check the answer from the user against my stored answer, i am using txtBox to store my answer and a txtbox for the input

View 5 Replies


ADVERTISEMENT

Simple Snippet That Will Allow The User To Test The Connection For The FTP Server ?

Jan 12, 2009

I need a simple snippet that will allow the user to test the connection for the FTP server entered in a textbox and the username and password from 2 other textboxes. (Server = TextBox1.Text, U/N TextBox2.Text, PW TextBox3.Text) I forgot to note something obvious - there's a "Test FTP" button

View 2 Replies

Basic Addition Calculator - Display Entire Arithmetic Solution Including Answer

Dec 22, 2008

I am using Visual Studios 2008. I'm trying to make a basic addition calculator. It consists of 2 input text boxes, 1 output box and one button. Below is the code I have which works, however, instead of just displaying the answer, I want it to display the entire arithmetic problem including the answer. For example. Instead of just giving me the answer of "6" in the output text box, I want it to say "3 + 3 = 6".

Here is the code I have so far.
Public Class Form1
Private Sub btnAddition_Click_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnAddition.Click
Dim num1, num2, sum As Double
[Code] .....

View 4 Replies

Take User Input And Make A Very Simple Bar Graph From It?

Jun 7, 2009

i need to take user input and make a very simple bar graph from it in vb.net.

View 3 Replies

Simple Addition Of Textboxes?

Jul 16, 2009

I have 5 textboxes that the user will input numeric's into (but not all the textboxes may be filled at one time) How can I get the sum of "however many" textboxes have values in them, without getting an error about the txtboxes that have no values in them?

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

Develop A Simple Math Calculator That Will Allow The User To Input The Right-hand-side (RHS) Of An Equation Into A Textbox?

Dec 12, 2011

I am trying to develop a simple math calculator that will allow the user to input the right-hand-side (RHS) of an equation into a textbox on the application and have the application evaluate the expression for a given value of x, which is also input
into the application by the user via another textbox.For example, if the user wants to evaluate the following expression,

y = 3 + 4*x + 5*x^2

then they would input into the textbox the RHS of the equation

3 + 4*x + 5*x^2

and then enter a value of x into the another textbox and click on the calculate button.I tried this:

answer = EquationTextBox.Text

but it doesn't work.

View 6 Replies

Scan Answer Sheet Of Entry Test And How Can Get Filled Circle And Character

Oct 22, 2010

Scan answer sheet of entry test and how i can get filled circle and charater

View 1 Replies

Design A Program That Can Encrypt And Decrypt Messages Stored In Simple Text Files Using A Private Key Stored In A Separate File?

Jun 13, 2011

Need to design a program that can encrypt and decrypt messages stored in simple text files using a private key stored in a separate file. Software should also be able to allow the users to enter simple messages that either displays the encrypted or decrypted message. The encryption method should use a simple substitution method. It should be set out in the following format:

Example (the "@" is the separator):

@
The character The Code End of line
A @ 4gh EOL
B @ 84!9 EOL

Has to use the 256 ASCII character codes. The separator will be used to separate the character and its corresponding code.Here are the pseudocodes I have come up with:

� Read any private key file
separator = readline(file);
while not EOF(file) do
tempStr = readline(file);

[code].....

View 5 Replies

VS 2010 Add Values Of Raw Data In Column 2 And 3 And Input Answer In Column5 In Datagridview?

Jun 28, 2011

I'm using visual basic 2010 and i am able to import the raw data from excel and into my datagirdview but i am unable to get the code to add the values of raw data in column 2 and 3 and show the answer in column 5. Do i need to loop it?

The entire project is in the attachment take a look at it.

This is the entire code i have now:

Imports System.Data.SqlClient
Imports System.IO
Imports System

[Code]....

View 2 Replies

Created A Simple Test With SendKeys

Feb 27, 2010

I created a simple test with SendKeys, and tried both SendWait and Send.[code]I tested in skype, and a few of the letters doubled. I tested in Flash, I got "Iffff yyouu cccaaaannn rrreaaaddd thhhiiisss,,, iiittt wwwooorrrrkkks."Clearly the issue is caused by lag. What can I do to prevent doubling (or tripling) of letters?

View 1 Replies

VS 2010 Simple Test Program

Jan 1, 2012

I would like to develop a very simple question-answer program whereby there is a user form with a label which contains the question, a text box where the user enters the answer and a button that the user clicks to change to the next question. This should be rather simple but I would like to have about 500 questions in the end (will be slowly adding more questions).

View 19 Replies

Test The URL Which Is Stored In My.Settings.MyLink

May 17, 2010

I have this code, how can I test the URL which is stored in My.Settings.MyLink to make sure the link is valid before it tries to get the elements of my xml file.

Dim myXMLTextReader As New Xml.XmlTextReader(My.Settings.MyLink)
myXMLTextReader.ReadStartElement("ATypes")
Do While myXMLTextReader.Read()

[Code]....

View 1 Replies

Set Up A Small Program/script That Can Test Simple Web Functionality?

Jun 17, 2010

I need to set up a small program/script that can test simple web functionality.I already have a window that automatically load the right URL. What I need now is pointers to how I can make that program return a code if it can load the site, then automatically log in to the site and return a code if it is able or not to log in. Then log out, wait for five minutes and then refresh the site and run again.

View 2 Replies

Perform Addition On Each Of The Rows And Columns And Diagonally Of The Array And Display The Results To The User?

May 23, 2012

The Random generator works fine. What I have a problem with is adding the rows and columns.

Array
0,0 0,1 0,2 = row total
1,0 1,1 1,2 = row total

[code]....

View 1 Replies

DB/Reporting :: Stored Procedure Test For Null/empty Uniqueidentifier

Sep 6, 2008

I have a stored procedure (SQL Server Express) that returns a count of records:

SELECT COUNT(AdminUserID) AS CountEm
FROM Licenses
WHERE (AdminUserID = @AdminUserID);

Table "Licenses" has a field "CompanyID" which is a uniqueidentifier.

I need to add a clause to the WHERE to exclude records from the count where "CompanyID" is null/empty.

In VB code I'd do this with "If Not (TheCompanyID.Equals(Guid.Empty)) Then"

How would I do this in a stored procedure?

View 2 Replies

VS 2008 : Loop Until The User Inputs A Valid Answer?

Feb 16, 2010

Is it possible for you to loop a block of code until the user provides a valid input? Like, when I click the save button, the program will prompt the user for an integer value, and I would like to validate if the user has inputted a valid value. If the user fails to input a valid value, then the program will re-prompt the same message again until the user inputs a valid value. Eg:

If MsgBox("Add copies to this book?", MsgBoxStyle.YesNo, "Adding Book Copies") = MsgBoxResult.Yes Then
Dim CopyQty As String = InputBox("Amount of copies to generate:", "Add Book Copy")
If IsNumeric(CopyQty) = False or (CopyQty < 1) Then

[code]....

View 12 Replies

Windows Form Multiplication Test Loop, Math And Cath Very Simple Program?

Nov 26, 2010

I think for you my problem is very simple..I have done the same program in console mode without problem, now i try into windows form...

I generate by random 2 number A&B I multiply them and I will compare it with the result in my textbox3

if it the same as the computer has calculated il will show you congratulation, however i will say try again

I have a problem to calculate the sum, A&B are well generated but nothing in Calc Result

When Calc was working when I write nothing in the textbox3 and i click on Verify it show the msgbox congratulation.I'm looking just for this step, I've fixed the other issues And another things When It's right I would like to random another number for A&B after closing the msgbox, how can I processd ?

[Code]...

View 3 Replies

DB/Reporting :: Test A Number Of Stored Procedures Through SQL Server Query Analyzer?

Mar 17, 2008

I am trying to test a number of stored procedures through SQL Server Query Analyzer. But am stuck when I try to test stored procedures that contain Output parameters.

Code:
DECLARE @Counterbigint
DECLARE @GUIDuniqueidentifier
exec usp_tbl_User_Add @Counter, @GUID, 'UserName', 'First Name','Surname',

[Code]....

When I put the Select statement though in the 'usp_tbl_User_Add' stored procedure in works fine and gives me the correct values.

View 2 Replies

Unable To Check The Exercise Answer One By One As The User Inputs The Info?

Oct 5, 2010

I have a form that has 10 addition execises. The user has the option of using a timer or not. I have the timer part correct, but now I want to be able to check the exercise answer one by one as the user inputs the info.

[Code]...

View 2 Replies

Write A Program That Will Allow Input Of Three Test Scores

Nov 25, 2010

I am working on an assignment for my Programming Logic and Design class. I also noticed a couple other similar posts but after going through them I still have an issue. I was suppose to write a program that will allow input of three test scores, average them then display a letter grade in a box. At this point the only thing that is being displayed is "F". [code]

View 3 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 2010 Adding A Simple Sql Stored Procedure To A Windows Form?

Feb 1, 2012

on a new project - windows form app i would like to bring a simple stored procedure from a server ( with credentials ) with one parameter.

the stored procedure is on the : "SERVER" "database" "sa" "sa" and it looks like this:

sql

SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO

[Code]....

also if i could select the client name from a drop down list would be verry nice. the select for the name is : "select name from clients"

The results could be exported into excel or a screen. ( after selecting the client in the form , another button for export )

View 1 Replies

How To Make VB2010 Take A Simple Keyboard Input

May 22, 2011

I used to program in BASIC, and am trying to learn VB now. What I am trying to do at the moment is take a keystroke on the numeric keypad (1-9 only) and pass it into my program to control what happens to a number as follows:[code]I can't seem to find anything in VB that allows simple keyboard entry in this manner.

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

Communications :: Parrallel Port Simple Input Read?

May 9, 2010

What i want to do it be able to read the input of a pin on the parrallel port. I want to supply a constant voltage to the pin and when that voltage drops i want to jump to another procedure.

View 2 Replies

Sql Server - Input Variables As Stored Procedure Statement

Feb 4, 2012

My stored procedure:

[Code]...

So my idea is to have (in my VB.net project) a string that could dynamically change the stored procedure "Future"

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







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