Click here to Skip to main content
15,888,212 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Syntax help Pin
Chinners6-Apr-08 22:50
Chinners6-Apr-08 22:50 
Question(missing code} detect path service Pin
hassanasp6-Apr-08 11:57
hassanasp6-Apr-08 11:57 
GeneralRe: (missing code} detect path service Pin
Christian Graus6-Apr-08 15:44
protectorChristian Graus6-Apr-08 15:44 
GeneralRe: (missing code} detect path service Pin
Luc Pattyn7-Apr-08 0:56
sitebuilderLuc Pattyn7-Apr-08 0:56 
GeneralRe: (missing code} detect path service Pin
Christian Graus7-Apr-08 1:01
protectorChristian Graus7-Apr-08 1:01 
Questionhow to check correct answer in quiz Pin
bapu28896-Apr-08 9:01
bapu28896-Apr-08 9:01 
GeneralRe: how to check correct answer in quiz Pin
Christian Graus6-Apr-08 11:13
protectorChristian Graus6-Apr-08 11:13 
QuestionRe: how to check correct answer in quiz Pin
bapu28897-Apr-08 8:19
bapu28897-Apr-08 8:19 
Hello sir

First of thank you very much for your rep.
But sir problem is not questions it's working fine and it's not repeating at all because i have set one Boolen variable so it's True that question which has been asked but problem is options for any question like i have 4 columns for wrong answer and one for correct answer so i am randomizing it first and then i am randomizing the one correct answer to display in text box so main problem is some time it's displays same options in two different text boxes and i am sure i am very close to it but some time it's hard to see small errors and code bellow is to randomize 4 options and one correct answer

'randomize 4 options
          For X As Integer = 0 To 3<br />
                    MyTB(CInt(Rnd() * 3)).Text = WAnswer(X)<br />
<br />
                Next X<br />
<br />
                'now randomize one correct answer<br />
                MyTB(CInt(Rnd() * 3)).Text = PoAns


and second thing sir the way i am checking correct answer is it the right way to check it or some thing else ?Unsure | :~

code is like this
the first line gets the correct answer for asked question and put it in to PoAns variable

PoAns = DataView1.Item(R).Item("CorrectAns")

  Private Sub CheckAnswer()<br />
        If CheckedTB.Text = PoAns Then<br />
            MsgBox("Right", MsgBoxStyle.MsgBoxSetForeground)<br />
        End If<br />
<br />
    End Sub<br />
    Private Sub txtA_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles txtA.Click, txtB.Click, _<br />
     txtC.Click, txtD.Click<br />
        CheckedTB = CType(sender, TextBox)<br />
        Call CheckAnswer()<br />
<br />
    End Sub

waiting for your kind rep. Smile | :)

thanks again for your rep.

have a nice day sir
GeneralRe: how to check correct answer in quiz Pin
Christian Graus7-Apr-08 11:46
protectorChristian Graus7-Apr-08 11:46 
AnswerRe: how to check correct answer in quiz Pin
bapu28899-Apr-08 8:55
bapu28899-Apr-08 8:55 
QuestionHow to use link labels ? Pin
Meme_856-Apr-08 5:33
Meme_856-Apr-08 5:33 
GeneralRe: How to use link labels ? Pin
Christian Graus6-Apr-08 11:15
protectorChristian Graus6-Apr-08 11:15 
Questionhelp..save time Pin
Member 44429165-Apr-08 22:57
Member 44429165-Apr-08 22:57 
GeneralRe: help..save time Pin
Thomas Stockwell6-Apr-08 3:48
professionalThomas Stockwell6-Apr-08 3:48 
Questioncombo selected index change event Pin
vijaylumar5-Apr-08 20:08
vijaylumar5-Apr-08 20:08 
GeneralRe: combo selected index change event Pin
Chinners6-Apr-08 23:23
Chinners6-Apr-08 23:23 
QuestionStop/Start a service Pin
hassanasp5-Apr-08 16:04
hassanasp5-Apr-08 16:04 
GeneralRe: Stop/Start a service Pin
Christian Graus6-Apr-08 16:43
protectorChristian Graus6-Apr-08 16:43 
GeneralExcel Value to textbox [modified] Pin
Member 44350515-Apr-08 3:14
Member 44350515-Apr-08 3:14 
Questionsystem date format Pin
pathak785-Apr-08 2:25
pathak785-Apr-08 2:25 
GeneralRe: system date format Pin
Rajesh Anuhya5-Apr-08 2:34
professionalRajesh Anuhya5-Apr-08 2:34 
GeneralRe: system date format Pin
pathak785-Apr-08 2:42
pathak785-Apr-08 2:42 
GeneralRe: system date format Pin
darkelv5-Apr-08 6:29
darkelv5-Apr-08 6:29 
GeneralRe: system date format Pin
Mycroft Holmes5-Apr-08 17:35
professionalMycroft Holmes5-Apr-08 17:35 
GeneralUsing csv files Pin
Haim Nachum5-Apr-08 2:07
Haim Nachum5-Apr-08 2:07 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.