When Selecting An Answer, Does Not Show Correct/incorrect?

Oct 29, 2011

'Declaringvariables
Dim sAnswer As String
Dim sCheck As String

[code].....

View 6 Replies


ADVERTISEMENT

Windows - Correct And Incorrect Answer Count

Apr 6, 2012

I want to add a counter for my program that basically counts the times I answered correctly and incorrectly. When a user adds or subtracts correctly the correct label shows 1 and when a user correctly answers again the correct label should show 2. It just adds and adds until the program is running. Same goes for the incorrect label.

View 1 Replies

Make Verify Answer Button Click Event Show Incorrect?

Feb 22, 2012

If strChoice = StrCapital, display CORRECT in the lblMsg Else, display INCORRECT

View 8 Replies

MathQuiz - Get A MessageBox To Show Up When The Answer In Form3 Is Correct?

Jan 26, 2011

I started to create the MathQuiz and it is working good as per the provide codes. I was also able to add 'Percentage Correct Answers' and some other details.I have added a new form with some buttons and that is working as well, just simple stuff and all good fun playing with it.

But here is my challenge:When 1 or more answers are incorrect the program is opening a new form (similar to the main form) and it shows the equations again. I did that with "Correcting.lblLADD.Text = addend1", etc. in then main form. In the form 'Correcting' = Form3.Designer.vb I have tried to get the Text into a Number but nothing works for me. Also Tried to make addend1 in Form1 Public but the value does not appear in Form3. Form3 has also a Private addend1 as Integer.Even if I give addend1 in Form3 a value Form3 does not calculate.Maybe it does but I can get it to work. I have tried to get a MessageBox to show up when the answer in Form3 is correct but the MessageBox does not work either.

View 10 Replies

Make A Program With First Form To Enter The Serial If Correct Just Continue To Form2 If Incorrect Just A Popup Say Like "Serial Incorrect"?

Aug 13, 2010

i just want to make a program with first form to enter the serial if correct just continue to form2 if incorrect just a popup say like "Serial Incorrect" how i can make it ?

View 2 Replies

Round A Number But It Is Not Giving Correct Answer?

Jan 14, 2011

In vb.net i am going to round a number but it is not Giving me correct answer. i.e.

Round (1.5,0) = 2
Round (2.5,0) = 2 which is wrong. the answer should be 3.

(When i use the Round formula in Excel it gives me the correct answer)

View 3 Replies

Keep Track Of The Number Of Correct And Incorrect Response?

Mar 1, 2011

Option Explicit On
Option Strict On
Public Class MainForm

[Code].....

View 1 Replies

Logic To Correct An Incorrect User Input

Jul 30, 2009

I am looking for logic that converts an incorrect user input to a correct integer input. For example, a user might mistakenly type in letters within an integer input and the logic changes that input to the correct form(integer).

View 3 Replies

[2008] Express Edition - Create A Variable /add Up The Score Of Correct And Incorrect Answers?

Feb 27, 2009

i am creating a quiz which would be 20 questions for software design students and may use alot of code.my first problem is the score for the test, i know a friend of mine can add up the score but he cant move onto the next thread until you have got the question correct which is sort of cheating, i want to know how you create a variable and make that variable stay in all the forms and add up the score of correct and incorrect answers and come up with a final score for the user in the end.

View 8 Replies

Use VB Express 9 To Get The Answer But To Show The Work?

Mar 11, 2010

I'm currently in Logic, Design, and Programming at college and we have homework over Arithmetic Operations.For example:100 ^ 2 - (((43 2) + 17) Mod 5 - 7.4) * 3 = 10,013.2

I need to solve it, we can use VB Express 9 to get the answer but we need to show the work. I've done fine up until the question. We have a test tomorrow and we are have 30/100 points just over math equations where we aren't allowed any use of the PC or calculator and I'm stuck on how to break this down.

[Code]...

View 16 Replies

Check Exist Database In SQL And Message Box Show Answer?

Oct 3, 2009

how to Check Exist Database in SQL And Message box Show Answer?

View 4 Replies

Make Program To Calculate Textbox1.text And Show The Answer In Textbox2

Dec 22, 2011

I am working on bit more advanced calculator, but I cant figure out how I can make my program to calculate textbox1.text and show the answer in textbox2

For example: (textbox1) 5*62+4
(textbox2)314

I'm not sure this question belong in this topic, but I don't know where else it should be?

View 16 Replies

Password Loop Textbox - Code Works To Read The Entry Data And To Recognise The Correct Data, And The Incorrect

Apr 16, 2012

CODE:

That code works to read the entry data and to recognise the correct data, and the incorrect. However, even if entry is correct, the error msgbox will appear (x times of how many records there are in file), despite being navigated to the menu. Anyway that the Else isn't triggered when data is correct. Also for it to appear just one instead of (x times of how many records there are in file.)

View 2 Replies

Show Up Details Of Employee On Selecting Row In DGV?

Jul 8, 2009

I have a form with a datagridview that show a list of employees. Right next to the datagridview, I have a small set of textbox containing employee information (name, phone, etc) which is my "details section". I have a tableadapter that populate the datagridview, this is working well. Now, what I want is to when I select a row in the datagridview, the details of the employee shows up in the details section.

I tried to bind textboxes to the correct column. It works, but if I specify the datatable a query that will get this employee info, the data of the datagridview change to be the only row in it. I want the list to be showing all results and then the details secion giving only information on the selected employee. Do I need two dataset for this?

View 7 Replies

Unable To Show Correct Log Id Number?

Feb 15, 2011

I have a form (FRMQUESTIONNAIRE). It contains, a listview table, a panel and picturebox, 2 combobox, 10 questions with 5 radio buttons each question ( A survey),A log number id (I just used Label in here) and 2 buttons ( save and skip).

Problem: When I click one item in listview table, the picture captured realted to the item click in listview table will be shown in panel beside it. However, the problem start to happen when the log ID is not appear accordingly based on user selection on listview table.

What I reckon start of the problem: - Previously The listview table(listview1) in frmquestionnaire was in frmqlist(another form). But to suit user requirement, it has to combined with frmquestionnaire. In frmqlist, I use a label Image. This form contains the similar details in frmquestionanire except there are no 2 combobox, 10 questions with 5 radio buttons each question ( A survey),A log number id (I just used Label in here) and 2 buttons ( save and skip) But it have a button(Proceed to survey). Having said that, when user click an item in listview(Frmqlist), the picture will be shown beside it. User will click button proceed to survey and frmquestionnaire will pop up. Here, It shows the correct Log ID based on user selection in frmqlist.

But now....

I have combine everything in frmquestionnaire. I am facing as the LOG ID is not showing according to the selection. As a result, I can't save the questionnaire answer as well as this log will be used to save in database.

[Code]....

View 2 Replies

Add The Resource File To Extract And Show - Correct

May 22, 2009

Work Program to add the resource file, to extract, to show, correct ... I can not do operations ...

View 2 Replies

Show Table Row While Selecting The Single Field From Listbox?

Mar 21, 2012

i am trying to make a vb.net project for a travel agency ..... i have make all of the content of it but i got stuck in listbox .... i have added onnfiled of sql table into the listbox and now i want that when i select the list box content then all the other fields of a the row will automatically come in the rest of the textbox so i can add and delete it manually....... here is my code..... of one form(i have made 13 forms like that)

[Code]...

View 1 Replies

DB/Reporting :: Adding New Record On Form Load - Show Correct Row ID

May 5, 2008

In an attempt to learn VB I'm trying to build a database project for a friend's business. This db will be used to track customer information, predominantly for targeted marketing purposes. So far, the development has been slow (I'm still trying to adapt from VBA to VB), but its all starting to make sense now. I'm using two different forms for adding new customers and reviewing the information of existing customers, mainly because the database will grow by about 2,500 customers per year and we wanted to be able to search the records without returning every record when the forms load. Most of this works so far, but I'm having trouble with two issues.

When I open the new customer entry form, I want the form to automatically begin entering data without clicking the "Add New" button. The second problem involves the row ID from the database. It keep showing up as "-1", "-2" etc. The row ID records properly in the table, so no big deal. I have read that this problem is a bug in VB and that its nothing to worry about. However, down the road I will need to access the correct row ID from this same form in order to print out a report for the customer (as needed).

For what its worth here is the code I have so far:
Code:
'Update current record when the form closes
Private Sub frmNewCustomer_FormClosing(ByVal sender As Object, ByVal e As System.Windows.Forms.FormClosingEventArgs) Handles Me.FormClosing
Me.TblCustomersBindingSource.EndEdit()
Me.TblCustomersTableAdapter.Update(Me.dsNewCustomer.tblCustomers)
[Code] .....

View 13 Replies

VS 2008 Get Green Label Box To Show Correct Coordinate After Box Is Scaled

Sep 2, 2011

I am trying to get the green label box to show the correct coordinate after the box is scaled. The red box always shows the true coordinate of the mouse in the picturebox. So for example - after you click on [Scale x4], the 32x32 picturebox will be 128x128. The red box will now show from 0-127 x and y. I would like the green box to show 0-3 x and 0-3 y. Does anyone know how to do this? The code is ready to run, just cut and paste. [code]

View 4 Replies

Is It Correct To Correct Properties Values On The Fly

May 15, 2010

Is it correct to correct properties values on the fly? for example: (note the .ToLower)

Public Property X() As String
Get
Return _x.ToLower
End Get

[code]....

View 1 Replies

Connect To SQL DB Receive The Code And Then Check If That Code Is Correct And If Its Correct Download Silence The Pro File?

Jun 8, 2010

i'm working on a system that upgrades a basic version to a proversion but i have a payment gateway . it generates a code in an SQL DB.now i have a form in VB that has a textbox and a button how can i let VB connect to my SQL DB receive the code and then check if that code is correct and if its correct download silence the pro file. from an url.

View 7 Replies

VS 2005 Getting The Correct Number Of Attributes To Match The Correct Number Of Text Boxes?

Apr 18, 2009

I have created a basic query generator which allows a user to select the Select, WHERE and criteria attributes using a number of checkboxes.However i have got stuck. In the results form i have the following code

Private Sub DisplayRecord()
RichTextBox1.Text = ds.Tables("newResults").Rows(intCurrentRecord).Item(0)
RichTextBox2.Text = ds.Tables("newResults").Rows(intCurrentRecord).Item(1)
RichTextBox3.Text = ds.Tables("newResults").Rows(intCurrentRecord).Item(2)

[code]....

The program keeps on crashing if the user does not select the corresponding amount of display records from above for the amount of attributes they want for the SELECT part of the query in the intreface in form 1.

How would i go about making something where the number of SELECT attributes selected which are listed in a string create the correct number of textbox fields in the results form (form2)

View 1 Replies

Get Rid Of Zero Or Replace It With 'Answer'?

Jul 11, 2011

I wrote my first program today and it works like I want it to Except when the Message box pops up there is a zero there untell you press the OK button then the answer displayes. How do I get rid of the zero or replace it with "Answer"?the program consist of 2 buttons, a labes, and a text box, when you enter a number in the text box then press button 1 the answer displayes in the label. If you press button 2 the answer displayes in a message box.I am new to programing and this is the first program i wrote without following a tutorial or book.[code]

View 14 Replies

Can't Get A Clear Answer What To Use ToString For?

Feb 22, 2009

I've googled like crazy and tried MSDN but I can't get a clear answer what to use ToString for.

View 11 Replies

Get The Answer Of A String Formula?

Apr 27, 2011

In the user input of a textbox I would like that the user can input a formula to make it easier for him. So instead of inputing 400 I would like the user to have the possibility to input as 8*50. Is there a command for vb2008 to calculate the answer of this formula inputed by a string ?

View 2 Replies

Get The Loop To Stop When It Has The Same Answer Twice In A Row?

Jul 2, 2009

[Code]....

As this Loops round, the answer for formula will eventually become the same as what was input, X. How can I get the Loop to stop when it has the same answer twice in a row? The counter will count how many times it has had to Loop before finding the repeated answer.

View 3 Replies

Quadratic Calculator - Answer Comes Up As NaN

May 29, 2010

I'm new to the server and I'm making a quadratic calculator with my friend. I have my calculator coded, but whenever i click the calculate button the answer comes up as "NaN". Here is the code.
TextBox4.Text = (intVarB * (-1)) + (((intVarB ^ 2 - (4 * (intVarA * intVarC))) ^ 0.5) / (2 * intVarA))
The Variables "IntVarA", IntVarB, and IntVarC are defined as public variables in a code module.

View 4 Replies

Rotating Answer Came From Database?

Apr 8, 2010

i am going to create one system which is related to test skill and it is in VB.Net and access database it has a question and four answer. both are coming from database,my problem is how do i change answer sequence everytime.whenever user tried for the test, answer sequence should be different.

View 14 Replies

.net - Rectangle Width(probably Easy To Answer) VB?

May 2, 2012

Dim energybar As New Rectangle(9, 154, energy, 21)That is my new rectangle, now when I draw it e.Graphics.FillRectangle(Brushes.Blue, energybar)It says there is no width but the integer energy is = to 100...now, how do I fix this? It but be somewhat simple.

View 1 Replies

Answer Fax Call - Start Receiving?

Jun 3, 2011

I have installed the fax service in windows. I want to write a code in vb.net program that start receiving from a fax call.

View 2 Replies







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