How to Create a Programmatic Management System (Software Gestionale)
As a small shop owner, you may want to manage your products more effectively without breaking the bank on commercial software. If you’re tech-savvy and willing to put in the effort, you can create a programmatic management system using Visual Basic or Excel.
What is a Software Gestionale?
A software gestionale is an application that supports companies (large or small) in managing their warehouse, accounting, clients, and more. It’s like having a personal assistant for your business operations.
In this article, we’ll walk you through the process of creating a simple programmatic management system using Visual Basic, focusing on the example of managing electronic products.
Preliminary Operations
Before we begin, make sure to download Microsoft Visual Studio, which will allow us to create our program in Visual Basic. If you’re on a Mac, don’t worry – Visual Studio is available for macOS too!
Once installed, follow these steps:
- Launch Visual Studio.
- Click on “Create a new project” and select “Visual Basic Windows Forms App (.NET Framework)”.
- Choose a name for your project (e.G., Program Gestionale).
- Ensure the box next to “Insert solution and project in the same directory” is checked.
- Click “Create”.
Creating The Graphic Interface
Now that we have our project set up, let’s create the graphic interface:
- In the Visual Studio window, click on the “Design” tab (it looks like a pencil).
- Drag and drop the following components onto your form:
- 5 Labels (Code Produced, Name, Mark, Quantity, Price)
- 5 Text boxes (TextBox1 to TextBox5)
- 4 Buttons (Add, Delete, Update, Clean)
- Rename each label and text box accordingly.
The Code
It’s time to write the code that will make our programmatic management system work:
- Double-click on the Add button to open its event handler.
- In the Visual Basic editor, insert the following code:
Vb
Dim produced As New List(Of Produced)
...
Produced.Add(New Produced(TextBox1.Text, TextBox2.Text, TextBox3.Text, Integer.Parse(TextBox4.Text), Double.Parse(TextBox5.Text)))
Save()
MsgBox("The product has been added successfully!")
AggiornaListView()
This code will save the new product to our virtual warehouse and update the list view.
Other Code
We need to add some more code to handle other operations:
- Double-click on the Delete button to open its event handler.
-
Insert the following code:
Vb
Dim tot As Integer = Produced.Count
...
Produced.RemoveAt(The)
Save()
AggiornaListView()
This code will remove the selected product from our virtual warehouse. -
Double-click on the Update button to open its event handler.
-
Insert the following code:
Vb
Dim tot As Integer = Produced.Count
...
Produced.RemoveAt(The)
Save()
MsgBox("The quantity of the product with code " & TextBox1.Text & " has been updated!")
AggiornaListView()
This code will update the quantity of the selected product. -
Double-click on the Clean button to open its event handler.
- Insert the following code:
Vb
TextBox1.Clear()
TextBox2.Clear()
TextBox3.Clear()
TextBox4.Clear()
TextBox5.Clear()
This code will clear all text boxes.
How It Works
When you run your program, it will display a window with labels and text boxes. You can add new products by filling in the required fields and clicking the Add button. The list view will update automatically.
You can delete or update existing products using their respective buttons. The Clean button will clear all text boxes for your convenience.
Deepening And Useful Links
This is just a basic example of a software gestionale, designed to work with small lists (up to 5000 products). You can modify the code to suit your needs.
Some possible improvements include:
- Making the program more user-friendly
- Adding error checking for invalid data
- Implementing a database to store product information
For further guidance on programming and development, check out resources like Udemy, YouTube tutorials, or books on computer science.
Creating a Programmatic Management System With Excel
If you don’t need a full-fledged software gestionale or prefer an alternative approach, consider using Excel. You can create a simple database using spreadsheets to manage your products.
This is especially useful for small lists or when you only need basic functionality.
Conclusion
With these steps and code snippets, you’ve created a basic programmatic management system using Visual Basic. Feel free to modify the code to suit your needs or explore other development resources.
If you prefer using Excel, follow our separate guide on creating a database with Excel.
Happy coding!




