If res = Windows.Forms.DialogResult.Yes Then
Yes = True
Password = InputBox("what is your secret question?", "Enter secret question")
prompt = 2
Password = InputBox("what is your secret answer?", "Enter secret answer")
txtPassword.Select()
nosuccess = 3
End 'Form 1
End If
How to write the code that the secret question the textbox is equal ("What is your favourite food?")?
and the secret answer textbox is equal ("Chicken Rice")
+ Reply to Thread
Results 1 to 2 of 2
Thread: visual basic code
Thread
-
Create a two-dimensional string array containing question and answer pairs. Search the array for the question to return the expected answer. Compare to the user's answer. Hint, use the LCase or UCase functions to convert questions/answers to all lower/uppercase.
John Miller
enosoft - high performance tools for music and video
Home of the Enosoft DV Processor - Free for personal use!
Similar Threads
-
Visual Basic code
By g_shocker182 in forum ProgrammingReplies: 30Last Post: 10th Aug 2006, 00:40 -
Visual Basic error
By shadowfox in forum ProgrammingReplies: 3Last Post: 2nd Mar 2006, 17:10 -
Visual Basic (6)
By g_shocker182 in forum ProgrammingReplies: 10Last Post: 30th Jan 2004, 21:50 -
Saving in Visual Basic
By g_shocker182 in forum ProgrammingReplies: 16Last Post: 27th Dec 2003, 17:20 -
Visual Basic 6 - Code or SDK for VCD and Burning???
By whm74 in forum Authoring (VCD/SVCD)Replies: 0Last Post: 13th Dec 2001, 14:14
Statistics
Newest guides
Latest tool updates
New media comments



Quote