Maze Game in Visual Basic 2013
You’d think that making a simple maze game would be straightforward, but it isn’t. I’ve looked at a lot of tutorials and seen a lot of YouTube videos, but it appears like everyone is using the Microsoft Maze lesson. It’s an enjoyable maze game.
The user must move the mouse pointer through the maze without touching any of the walls, or the cursor will return to the beginning. But that’s not the kind of behavior I’m looking for.
The player for the maze I planned to make would be a PictureBox. To navigate the maze, the user would utilize the arrow keys.
Only if a collision with a “enemy” was detected would the player be sent back to the start point. The walls would be impenetrable fortifications.
This week, I spent my time creating a maze with opponent pieces going up and down or back and forth, protecting locations where power ups could be found.
The issue I kept coming into was how to prevent the player from simply walking through the maze walls. I have figured out how to make all of the walls solid from any angle.
Let’s have a look at how to make a tiny maze first, and then we’ll look at how to make adversaries and power ups in the following blog post.

Maze Game in Visual Basic 2013Maze Game in Visual Basic 2013 is my Mini System as final requirements in Computer Programming subject. In this game, it allows the user to navigate through the corridors without touching the walls.
If the walls are touched by the pointer, it will automatically jump back to the start. The game will only end when the pointer reaches the finished label at the end of the maze. A message box will then display to inform the user that you have completed the journey.
Make a new project for a Windows form. To make your maze, add a PictureBox control and as many labels as you like.
Reduce the size of the PictureBox and give it a Back Color or an image. Select a Back Color and set the label AutoSize property to False.
Carry out the same procedure for all of the labels. The maze walls will be these. Some labels should be wide and thin, while others should be tall and thin. Arrange the labels to create a simple maze for the player to navigate.
Download the full source code here.====> MAZE_game
If you have any questions or suggestion about this project you may contact the programmer of this repository.
- Marie Sheena Bernardino
- Joenel Gregorio
Show your support through Sharing.
[wpedon id=9958]Inquiries
If you have any questions or suggestions about Maze Game in Visual Basic 2013, please feel free to leave a comment below.
Frequently Asked Questions
How does this VB.NET project work?
Built with VB.NET WinForms (.NET Framework 4.5+) and SQL Server backend. Standard structure: Form designer to code-behind event handlers to ADO.NET data access layer to SQL Server. Login form for auth. Ready to extend for BSIT capstone scope.
What Visual Studio and SQL Server versions does this VB.NET project require?
Most projects use VB.NET WinForms on .NET Framework 4.5+ with SQL Server 2012 Express or higher. To run: install Visual Studio 2019 / 2022 (Community is free) with the ‘Desktop development with .NET’ workload, install SQL Server Express + SSMS, open the .sln file, build, run.
How do I set up the database for this VB.NET project?
Open SQL Server Management Studio (SSMS) and connect to your SQL Server (e.g. localhost\SQLEXPRESS). Right-click Databases, choose Restore Database OR New Database then import the included .sql script. Update the connection string in App.config (or in code-behind Module) with your server name + credentials. Rebuild and run.
Can I use this VB.NET project for a BSIT capstone or thesis?
Yes, VB.NET is one of the most accepted languages by Philippine BSIT panels. Extend it: add role-based access (admin/staff/customer login redirect), Crystal Reports or RDLC reports, dashboards with Chart control, audit log, multi-branch support. Pair with Chapter 1-5 documentation matching your panel’s rubric.
Why am I getting ‘connection error’ or ‘cannot find SQL Server’?
Three common VB.NET issues: (1) Connection error: SQL Server isn’t running. Open SQL Server Configuration Manager and verify SQL Server (SQLEXPRESS) service is started. (2) Wrong server name in connection string. Try .\SQLEXPRESS, (local)\SQLEXPRESS, or your machine name. (3) Login failed: SQL Server is set to ‘Windows-only’ authentication. Switch to Mixed Mode in SSMS Server Properties, Security.
Where can I find more VB.NET projects with source code?
Browse the VB.NET Projects hub for the full library. For C# WinForms alternatives see C# Projects. For ASP.NET web alternatives see ASP.NET Projects. For BSIT capstone idea lists see 150 Best Capstone Project Ideas.

I cant seem to access the game, I downloaded the file but not sure where to go from there