C# Tutorial – Make a Binary Calculator Game in Windows Form Application and Visual Studio

In this tutorial we will make Binary calculator quiz game using windows form application and Visual Studio. This app will have 9 combo boxes, each combo box will contain either a 0 or 1. A random number will be generated and  the app will ask the user to solve that number in binary. All of the combo boxes have a value marked on top of them so we can select from 1, 2, 4, 8, 16, 32, 64, 128 and 256. If the binary number we have added is correct then the program will give us another number to solve or we can keep trying to solve it until we get it. This was a fun application to make because half way through I decided to add all of the components from the C# script. So all the combo boxes and labels are added dynamically from the script. Nothing was added from the tool box. Also the events are added to the program from the script and its also managed in the same script. I think this will give you a better idea on how to create a simple app just from the script and have it work jus the way you want it to.

Lesson Objectives –

  1. Create a binary calculator quiz game in windows form and visual studio
  2. Create the whole game from the C# script dynamically
  3. Add the combo boxes and labels from the script
  4. Add random colors to the labels and combo boxes
  5. change the form height, width and background color from the script
  6. Add events to the combo boxes dynamically



Download the Binary Calculator Tutorial on GitHub
Full Source Code –



Comment on this tutorial and let us know how you got on -