When Selecting An Answer, Does Not Show Correct/incorrect?
Oct 29, 2011'Declaringvariables
Dim sAnswer As String
Dim sCheck As String
[code].....
'Declaringvariables
Dim sAnswer As String
Dim sCheck As String
[code].....
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 RepliesIf strChoice = StrCapital, display CORRECT in the lblMsg Else, display INCORRECT
View 8 RepliesI 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.
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 RepliesIn 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)
Option Explicit On
Option Strict On
Public Class MainForm
[Code].....
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 Repliesi 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 RepliesI'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]...
how to Check Exist Database in SQL And Message box Show Answer?
View 4 RepliesI 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?
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.)
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?
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]....
Work Program to add the resource file, to extract, to show, correct ... I can not do operations ...
View 2 Repliesi 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]...
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] .....
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 RepliesIs 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]....
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 RepliesI 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)
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 RepliesI've googled like crazy and tried MSDN but I can't get a clear answer what to use ToString for.
View 11 RepliesIn 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[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.
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.
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 RepliesDim 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 RepliesI 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