Results 1 to 13 of 13

Thread: Button to run a test program.

  1. #1

    Thread Starter
    Member
    Join Date
    Feb 2012
    Location
    California
    Posts
    44

    Button to run a test program.

    I'm a beginner at VB and I wrote a program where when you type any state located in the US in text1.text by pressing a certain button the capital will appear in text2.text. I would like to run another program where I can quiz or test a user using radios to match the question. When I create the button, how can i start by opening a new form without stopping any programs. I hope this is understandable.

    Thank you.

  2. #2

    Thread Starter
    Member
    Join Date
    Feb 2012
    Location
    California
    Posts
    44

    Re: button to run a test program

    Never mind, I figured it out.

  3. #3
    Frenzied Member
    Join Date
    Nov 2010
    Posts
    1,470

    Re: button to run a test program

    would you like any hints on how to randomise your quizz and how to ensure it is an educational benefit rather than just a game?

    here to help and guide

  4. #4

    Thread Starter
    Member
    Join Date
    Feb 2012
    Location
    California
    Posts
    44

    Re: button to run a test program

    enlighten me

  5. #5
    Fanatic Member
    Join Date
    Feb 2012
    Posts
    616

    Re: Button to run a test program.

    it is quite simple, but you have to read much more if you want to learn programming

    http://www.vb6.us/guides/visual-basic-6-beginners-guide

  6. #6
    Frenzied Member
    Join Date
    Nov 2010
    Posts
    1,470

    Re: button to run a test program

    how do you think you will randomize the fixed set of questions?

    how do you think you will layout the answer options (per question)?

    these questions are asked to see just how much you know!

    here to help

  7. #7

    Thread Starter
    Member
    Join Date
    Feb 2012
    Location
    California
    Posts
    44

    Re: button to run a test program

    Quote Originally Posted by incidentals View Post
    how do you think you will randomize the fixed set of questions?

    how do you think you will layout the answer options (per question)?

    these questions are asked to see just how much you know!

    here to help
    yes because i would like a different set of questions and/or different order when you try the test again. Yes that would be fantastic. Thank you.

  8. #8
    PowerPoster dilettante's Avatar
    Join Date
    Feb 2006
    Posts
    24,487

    Re: Button to run a test program.

    My guess is that most beginners will have confused VB.Net with VB6 and are posting in the wrong forum. VB6 is hard to obtain legally now.

  9. #9

    Thread Starter
    Member
    Join Date
    Feb 2012
    Location
    California
    Posts
    44

    Re: button to run a test program

    in form 2 where it asks which language to learn has two buttons, Spanish and Tagalog. when i click the Spanish button form 3 appears and everything works fine. In that same form there is a button on the bottom that directs you back to form 2. In form 2 I click back to spanish, which takes me back to form 3 the entries are still there, how can i create whenever i chose the Spanish button on form 2 that all entries will always be cleared when the program takes me to form 3? Thank you

  10. #10
    Frenzied Member
    Join Date
    Nov 2010
    Posts
    1,470

    Re: button to run a test program

    you neec to access the on activation event or what ever it is called in your programming language version

    back to previous questions that how do you hold you data ( the words )

  11. #11

    Thread Starter
    Member
    Join Date
    Feb 2012
    Location
    California
    Posts
    44

    Re: button to run a test program

    Quote Originally Posted by incidentals View Post
    you neec to access the on activation event or what ever it is called in your programming language version

    back to previous questions that how do you hold you data ( the words )
    I don't understand what that means but here is my button code to take me from form 3 to form 2


    Private Sub Command1_Click()
    Spanish.Visible = False
    LanguageSelect.Visible = True
    End Sub

    and this would be my code for my button to take me from form 2 back to form 3

    Private Sub Command2_Click()
    Spanish.Visible = True
    LanguageSelect.Visible = False
    End Sub

    I labeled form 2 (LanguageSelect) and form 3 (Spanish)

  12. #12

    Thread Starter
    Member
    Join Date
    Feb 2012
    Location
    California
    Posts
    44

    Re: Button to run a test program.

    Im using VB 6, the program im writing ive been working on for 3 days. Some users on here were great enough to answer other of my questions. I obtained VB 6 because I'm an IT student at Heald College and Microsoft has an alliance with heald so we are able to download their software for free. By the way I figured it out. from form 1 to form 2.

    Private Sub Command1_Click()
    form1.visible=false
    form2.visible=true
    end sub

  13. #13
    PowerPoster gep13's Avatar
    Join Date
    Nov 2004
    Location
    The Granite City
    Posts
    21,963

    Re: Button to run a test program.

    Duplicate threads merged.

    Gary

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width