Hello all!! I am trying to create a Windows Form Application that allows a user to answer 10 questions. The program contains a 'next button so that when the user clicks it, the next question appears. My problem is trying to figure out how to code for the next button. There is also a 'previous' button and I am not sure how to code the program so that the user can cycle through the questions. I have a label for the questions to appear in and want the next question to appear in the same label when the next button is clicked. Any ideas? Thanks!!
Turismosan
0
Newbie Poster
Recommended Answers
Jump to PostAre the questions all in an array? If they are, just have a counter that points to the current question. Initialize it to 0 to indicate the first question. When the Next button is pressed, increment the counter, if it exceeds the number of questions then reset it to 0 …
All 4 Replies
Ancient Dragon
5,243
Achieved Level 70
Team Colleague
Featured Poster
Sulaiman_1
-2
Light Poster
arunkumars
14
Junior Poster
kamilacbe
14
Junior Poster in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.