Save and run your project
You can run your app at any time while you work on it. After you add the code in the previous section, the Bouncing balls game is complete.
Run the app
- Select the Start button to run the application.
- The app runs in the separated window along with Diagnostics Tools and Output windows running in the background.
- Increase the NumericUpDown control for each ball and make balls move.
- See the displayed statistics about collisions.
Tip
You can reduce the list of included namespaces in ball.cs and Form1.cs files. Right-click anywhere on the code and select Remove and Sort Usings. This action removes unused namespaces.
Next steps
Congratulations! You finished this tutorial and created a game with bouncing balls. You performed these tasks in the Visual Studio IDE:
- Created a Visual Studio project that uses Windows Forms.
- Added Labels, NumericUpDown, Panels, and ListBox controls, and a Timer.
- Wrote an external library with the ball and learn how to work with it.
- Wrote the code with makes the balls move.
Continue learning with another tutorial series on how to create an app.