Click here to Skip to main content
15,796,982 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: (missing code} detect path service Pin
Christian Graus6-Apr-08 16:44
protectorChristian Graus6-Apr-08 16:44 
GeneralRe: (missing code} detect path service Pin
Luc Pattyn7-Apr-08 1:56
sitebuilderLuc Pattyn7-Apr-08 1:56 
GeneralRe: (missing code} detect path service Pin
Christian Graus7-Apr-08 2:01
protectorChristian Graus7-Apr-08 2:01 
Questionhow to check correct answer in quiz Pin
bapu28896-Apr-08 10:01
bapu28896-Apr-08 10:01 
GeneralRe: how to check correct answer in quiz Pin
Christian Graus6-Apr-08 12:13
protectorChristian Graus6-Apr-08 12:13 
QuestionRe: how to check correct answer in quiz Pin
bapu28897-Apr-08 9:19
bapu28897-Apr-08 9:19 
GeneralRe: how to check correct answer in quiz Pin
Christian Graus7-Apr-08 12:46
protectorChristian Graus7-Apr-08 12:46 
AnswerRe: how to check correct answer in quiz Pin
bapu28899-Apr-08 9:55
bapu28899-Apr-08 9:55 
hello sir

yes i got it and i have done it as you said this is my stupid mistake sir
and this is the code and it's works fine all along i was thinking that i am randomizing wrong answers but i wasn't i was randomizing textbox which is not possible but any way this the way i learn

thanks again

  Dim X, Y As Integer, Placed(3) As Boolean<br />
                For X = 0 To 3<br />
                    Do<br />
                        Y = CInt(Int(Rnd() * 4)) ' Randomize 4 wrong answers<br />
                    Loop Until Placed(Y) = False 'Loop until it's not same number<br />
                    Placed(Y) = True<br />
                    MyTB(X).Text = WAnswer(Y) ' Place randomly selected wrong answer in text box <br />
                Next<br />
<br />
                'now randomize one correct answer<br />
                MyTB(CInt(Rnd() * 3)).Text = PoAns


thank you very much sir

have a nice day

Big Grin | :-D Rose | [Rose]
QuestionHow to use link labels ? Pin
Meme_856-Apr-08 6:33
Meme_856-Apr-08 6:33 
GeneralRe: How to use link labels ? Pin
Christian Graus6-Apr-08 12:15
protectorChristian Graus6-Apr-08 12:15 
Questionhelp..save time Pin
Member 44429165-Apr-08 23:57
Member 44429165-Apr-08 23:57 
GeneralRe: help..save time Pin
Thomas Stockwell6-Apr-08 4:48
professionalThomas Stockwell6-Apr-08 4:48 
Questioncombo selected index change event Pin
vijaylumar5-Apr-08 21:08
vijaylumar5-Apr-08 21:08 
GeneralRe: combo selected index change event Pin
Chinners7-Apr-08 0:23
Chinners7-Apr-08 0:23 
QuestionStop/Start a service Pin
hassanasp5-Apr-08 17:04
hassanasp5-Apr-08 17:04 
GeneralRe: Stop/Start a service Pin
Christian Graus6-Apr-08 17:43
protectorChristian Graus6-Apr-08 17:43 
GeneralExcel Value to textbox [modified] Pin
Member 44350515-Apr-08 4:14
Member 44350515-Apr-08 4:14 
Questionsystem date format Pin
pathak785-Apr-08 3:25
pathak785-Apr-08 3:25 
GeneralRe: system date format Pin
Rajesh Anuhya5-Apr-08 3:34
professionalRajesh Anuhya5-Apr-08 3:34 
GeneralRe: system date format Pin
pathak785-Apr-08 3:42
pathak785-Apr-08 3:42 
GeneralRe: system date format Pin
darkelv5-Apr-08 7:29
darkelv5-Apr-08 7:29 
GeneralRe: system date format Pin
Mycroft Holmes5-Apr-08 18:35
professionalMycroft Holmes5-Apr-08 18:35 
GeneralUsing csv files Pin
Haim Nachum5-Apr-08 3:07
Haim Nachum5-Apr-08 3:07 
GeneralRe: Using csv files Pin
Rajesh Anuhya5-Apr-08 3:19
professionalRajesh Anuhya5-Apr-08 3:19 
GeneralRe: Using csv files Pin
Haim Nachum5-Apr-08 7:18
Haim Nachum5-Apr-08 7:18 

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.