Invoice Management is a professional .NET Framework Windows Forms application designed to streamline invoice creation, management, and user handling. Built for small businesses or personal use, it offers an intuitive interface for data entry and user administration.
This project provides a robust solution for managing invoices, including features for adding, viewing, and editing invoice details, along with user authentication and management capabilities.
Below is a visual representation of the database schema:
- π Invoice Creation: Easily create and edit invoices with a user-friendly interface.
- π€ User Management: Add, view, and manage users with secure access.
- π Authentication: Simple login system to protect sensitive data.
- πΎ Data Persistence: Stores data locally (requires setup with a database like SQL Server).
- π¨ Modern UI: Clean and responsive design using Windows Forms.
- Language: C# (.NET Framework)
- Framework: Windows Forms
- Database: SQL Server (configurable)
- IDE: Visual Studio
Before running the project, make sure you have the following installed:
- Windows OS with .NET Framework 4.5 or higher.
- Visual Studio (Community Edition recommended).
- SQL Server (e.g., SQL Server Express).
- Git for version control and cloning the repository.
- Clone the repository:
git clone https://github.com/KhalilAmamri/InvoiceManagement.git cd InvoiceManagement - Open the project in Visual Studio.
- Configure the database connection in
connect_db.csif needed. - Build and run the solution.
- Install SQL Server (e.g., SQL Server Express) and SQL Server Management Studio (SSMS).
- Open SSMS and connect to your SQL Server instance (e.g.,
.\SQLEXPRESS). - Run the SQL script to create the database and tables:
Or open
sqlcmd -S .\SQLEXPRESS -i Database/database.sqlDatabase/database.sqlin SSMS and click Execute. - Update the connection string in
connect_db.cs:string connectionString = "Data Source=.\\SQLEXPRESS;Initial Catalog=DB_GestionFacture;Integrated Security=True";
Note: Adjust file paths in the script (
.mdfand.ldf) if needed to match your SQL Server data directory.
- Open
main.csor the startup form in Visual Studio. - Press F5 to build and run the project.
## π Project Structure
InvoiceManagement/
βββ Database/
β βββ database.sql # SQL script to create the database and tables
βββ images/
β βββ database_diagram.png # Database schema diagram
βββ FormGestionFactures.cs # Invoice management form
βββ FormGestionFactures.Designer.cs
βββ FormGestionFactures.resx
βββ FormLogin.cs # Login form
βββ FormLogin.Designer.cs
βββ FormLogin.resx
βββ connect_db.cs # Database connection logic
βββ main.cs # Application entry point
βββ .gitignore # Git ignore file
βββ README.md # This file
We welcome contributions! To contribute:
- Fork the repository.
- Create a feature branch:
git checkout -b feature/new-feature
- Commit your changes:
git commit -m "Add new feature" - Push to the branch:
git push origin feature/new-feature
- Open a Pull Request.
This project is licensed under the MIT License. See the LICENSE file for details.
- Khalil Amamri
- GitHub: KhalilAmamri
- Inspired by .NET Framework community resources.
- Thanks to all contributors and users!







