+ Reply to Thread
Results 1 to 2 of 2
Thread
  1. Member
    Join Date: Jan 2009
    Location: Singapore
    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")
    Quote Quote  

  2. 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!
    Quote Quote  




Similar Threads

  1. Visual Basic code
    By g_shocker182 in forum Programming
    Replies: 30
    Last Post: 10th Aug 2006, 00:40
  2. Visual Basic error
    By shadowfox in forum Programming
    Replies: 3
    Last Post: 2nd Mar 2006, 17:10
  3. Visual Basic (6)
    By g_shocker182 in forum Programming
    Replies: 10
    Last Post: 30th Jan 2004, 21:50
  4. Saving in Visual Basic
    By g_shocker182 in forum Programming
    Replies: 16
    Last Post: 27th Dec 2003, 17:20
  5. Visual Basic 6 - Code or SDK for VCD and Burning???
    By whm74 in forum Authoring (VCD/SVCD)
    Replies: 0
    Last Post: 13th Dec 2001, 14:14
About   Advertise   Forum   RSS Feeds   Statistics   Tools