How to make a simple multiple choice quiz game in windows form and c#

preview_player
Показать описание


In this tutorial we will learn how to make a simple multiple choice quiz game in windows form. I am using Visual Studio 2019 for this project and as always the language of choice is C#.

This tutorial will show you how to accurately use CLICK event with multiple buttons, using picture boxes to show relative pictures to the question inside the quiz, using labels and finally calculating a percentage to show the user how many questions they got right out of the total question.

We are using a switch statement to build a simple question and answer data base of sorts. In this tutorial we have total of 8 questions but you can add more if you want to, see how it can help you with your projects and take any part of it and make it part of your project.

Рекомендации по теме
Комментарии
Автор

Thank you very much! I had knowledge only in c++ from school and i needed to do a project in c#, though no one teached me anything about it. After i've searched for hours i found this video and i made a quiz. Very good tutorial!

cezardiaconu
Автор

The definition of a lifesaver, I appreciate you immensely for making this video. Really insightful, well-explained and straight to the point. Cheers!

vielleicht
Автор

Bro you saved me. I had to make a quiz in my project, and I never did anything like this before. I didn't even know how to start it, I just had a basic UI concept and tried making something, but it was just trash, then I found this video. Thank you so much for saving me!

benedekkecskes
Автор

anyone who's having sound issues can try adding volume booster exstension to browser, it worked for me
anyway tnx for tutorial Moo

sasavatic
Автор

you are a legend thank you for making this video i needed it.

gamingslime
Автор

This has gotta the best tutroial on the internet thank you!!

tonygarza
Автор

This really helped with my project, much appreciated 😂❤. I'm definitely subscribing & going to recommend you to others 😅❤

eeqtkvj
Автор

Thank you so much friend, you really helpful 🌹

aimanh
Автор

The volume of the audio is low but thanks for the vid. It helped me a lot

lancedelrosario
Автор

Thank u so much now I Will survive school yes

sanjaakrasho
Автор

thanks alot sir thankyou thankyou thankyou thankyou thankyou

syedtahahashmi
Автор

very nice i am fan of you but voice is bit low.thankyou

dx
Автор

Hi @Mooict. I thank you for the tutorial but I have a problem. Why does the question not change if I press an answer?

anranelsaren
Автор

How can I make different categories before actually having the questions for the quiz? And also how can I make the questions generate randomly

saadrashid
Автор

Hi please, can you do a simple multiple-choice quiz game in windows form using VB not c# it would be helpful ?

oviphoenix
Автор

It says my debug target is missing. Can anyone help me?

It says The name "askQuestion" does not exist in the current context

bornaliber
Автор

Hello!
This is a great tutorial video and thanks for the upload!
I have 1 question tho, how can i add a timer for each question? Lets say i want to give 1min time for each question to be answered, and if the time runs out without click anything, it goes to the next question and ofc it will count it as a wrong answer.

istvanszilard
Автор

I have another question: Do you know maybe how to randomize the order of the questions (cases) without repeat?

istvanszilard
Автор

the percentage keeps on coming up as 0% and 0 questions correct, even if all the questions are being answered correctly. Help please?

turbozone
Автор

hi my problem is pictures dont appear when ive finished the project.when i typed Properties.Resources.questions, questiosn was marked red, so i went to solution explorer and clicked the first option.Does it have anything to do with that?

jovanjovanovic