Affichage des articles dont le libellé est vb.net project. Afficher tous les articles
Affichage des articles dont le libellé est vb.net project. Afficher tous les articles

Free VB.Net Projects Source Code

Download 9 VB.Net Project Source Code

Download VB.Net Project Source Code



here's a list of free vb.net projects source code + video tutorial / demo.

this list contains vb.net games, mini apps, form designs.

if you want to get premium vb.net projects source code click HERE .


 1 - VB.Net Quiz App Project Source Code 

VB.Net Quiz App Project Source Code

How to Make a Simple Quiz App Using Using WindowsForm, Panel, Button and RadioButtons In Visual Basic.Net Programming Language.


 2 - VB.Net Calculator Project Source Code 

VB.Net Calculator Project Source Code

How To Make A Simple Windows Form Calculator Application With Swith  To Do The Basic Operations (+, -, /, *) Using Visual Basic.Net In Visual Studio Editor.


 3 - VB.Net Login And Register Form Design In One Window Source Code 

VB.Net Login And Register Form Design In One Window Source Code

How to Design a Login and Register Form in One windowForm Using VB.Net Programming Language .


 4 - VB.Net Tic Tac Toe Game Source Code 

VB.Net Tic Tac Toe Game Source Code

How To Build A Tic-Tac-Toe Game With Replay And Get The Winner And Change Winning Boxes Color Using VB.Net Programming Language.


 5 - VB.Net Rock Paper Scissors Game Source Code 

VB.Net Rock Paper Scissors Game Source Code

How To Make a Rock Paper Scissors Game Project Using Visual Basic .Net.


 6 - VB.Net Login & Register Form With MySQL DataBase Source Code 

VB.Net Login & Register Form With MySQL DataBase Source Code

How to Create Login and Register Form in Visual Basic.Net with MySQL Database.


 7 - VB.Net Glass Bridge Game From Squid Game Source Code 

VB.Net Glass Bridge Game From Squid Game Source Code

How To Make The Glass Bridge Game From Squid Game In Visual Basic .Net Using Panels and PictureBoxes.


 8 - VB.Net Mini Project With MySQL Database 

VB.Net Mini Project With MySQL Database

VB.Net Mini Project - How To Insert Update Delete Search Display Images In SQL Database .


 9 - VB.Net Guess The Word Game Source Code 

VB.Net Guess The Word Game Source Code

How to Make a Simple Word Guessing Game App In VB.Net Programming Language..








if you want to download Premium VB.Net Projects source code, click on the download button below




VB.Net Library Management System Source Code

Library System Project Source Code Using Visual Basic .Net And MySQL Database

VB.Net Library Management System Source Code


in this vb.net project tutorial serie we will see how to make a library management system using windowForm in visual basic .net programming language and mysql database.

goals of this project:
- give students / curious persons an example so they can learn from it.
- helping people create their first project. 
- sharing knowledge with others.

tools:
- visual basic .net programming language.
- microsoft visual studio express 2013.
- mysql database.
- phpmyadmin.
- xampp server.
- pixabay.com ( website to get free images ).
- canva.com ( to create the book covers )

Watch This Full Demo



if you want the source code click on the download button below


1 - The Login & Dashboard Form

the login form will allow the Users to login into the library system application Dashboard Form.


VB.Net Library Management System Login Form


the login and the dashboard forms will be displayed at the same time.
the dashboard form will be disabled until the user login succussfuly.


VB.Net Library Management System Dashboard Form


if the user is a simple user, he can't access to the circulation and the users section.


VB.Net Library Management System Menu


if the user is an admin, he can't access the users section.


VB.Net Library Management System Admin Menu


if the user is an owner.


VB.Net Library Management System Owner Menu


and as you can see the dashboard form consist of 3 parts:
1 - show some data analytics.
VB.Net Library Management System Analytics


2 - show a menu in the left-bar.
VB.Net Library Management System Left-Bar


3 - show the latest books & Members in the bottom.

VB.Net Library Management System New Books

VB.Net Library Management System New Members


2 - The Library System - Genres Form

- this form allow the users to add, edit remove books genre, and display all the genres in a datagridview.

VB.Net Library Management System Genres Form



3 - The Library System - Manage Authors


- here the user can add a new author to the system. view all authors in a datagridview, and how many are there. 
- edit, remove the selected author from the datagridview.
- export the authors to a text file.

VB.Net Library Management System Authors Form


- if you want to see a selected author books, just select one from the datagridview and click the "Show Author Books" button.

VB.Net Library Management System Author's Books Form


4 - The Library System - Manage Books


this form is where you can manage the library books.
this form has multiple pages using tabControl.

page 1 - add a new book

VB.Net Library Management System Books Form

the button "select author" will show a form with all the authors in it to allow the user to select from it
( you need to douple click on the datagridview to select the author, the form will automaticaly close ).

VB.Net Library Management System Authors List Form


page 2 - edit a book

you can search the book you want to edit by id or isbn.

VB.Net Library Management System Edit Book Form


page 3 - books list

- in this page you can see all books, search a book by title.
- export books list to a text file.
- select a book and to edit or the delete page ( the selected book data will be displayed )
VB.Net Library Management System Books List Form


page 4 - remove book

this a simple page where the user can easlly remove a book by id.

VB.Net Library Management System Delete Book Form



5 - The Library System - Manage Members


in this form you can:
- add a new member to the system.
- edit the selected  member from the datagridview.
- delete the selected  member from the datagridview.
- export members to a text file


VB.Net Library Management System Members Form


6 - The Library System - Circulation Form

ISSUE BOOK: in this page you can issue a book to a specific member for a specific date.


VB.Net Library Management System Issue a Book Form


to select a book enter the book id and click "search book".
if this book id exist you will see the book title under the book id field. 
if this book is available ( by counting the quantity and other stuff  ) you will see YES if not you will see NO . 
the same is for the member, enter the member id > click search > you will see the member full name


Issue a Book Form


when you click on the book title an info card will show up.

Book Card Form


the same for the member, when you click on the member fullname an info card will show up.


Member Card Form


CIRCULATION LIST: in this page you can see all the circulations.

VB.Net Library Management System Book Circulation List Form



RETURN BOOK: in this page you can return a book or set it to lost, or remove a circulation.


VB.Net Library Management System Return Book Form


7 - The Library System - Manage Users Form

in this form you can manage the users.
this form contains:
1 - table with all users:
2 - a button to add a new user.
3 - a button to edit the selected user.
4 - a button to remove the selected user.
5 - a button to clear all textboxes

VB.Net Library Management System Users Form





if you want the source code click on the download button below









VB.Net Products Manager Project With MySQL Database

How To Make a VB.Net Products Manager Project With MySQL Database Using Visual Studio

VB.Net Products Manager Project With MySQL Database


in this visual basic .net tutorial we will see how to Create a products manager project in one form using windowForm in vb.net programming language and mysql database.

tools:
- visual basic .net programming language.
- microsoft visual studio express 2013.
- mysql database.
- phpmyadmin.
- pixabay.com.

Watch The Full Tutorial


if you want the source code click on the download button below



- The Project Source Code


Imports MySql.Data.MySqlClient


Public Class ManagementForm

    ' variables
    Dim connection As MySqlConnection = New MySqlConnection("datasource = localhost;port = 3306; initial catalog = csharp_products; username = root; password =")
    Dim table As DataTable = New DataTable()
    Dim productIndex As Integer = 0



    ' form load
    Private Sub ManagementForm_Load(sender As Object, e As EventArgs) Handles MyBase.Load

         ' custom datagridview
        dataGridViewProducts.RowTemplate.Height = 40
        pictureBoxClose.Image = My.Resources.close
        ' populate datagridview
        showProducts()
        comboBoxCategories.SelectedIndex = 0
        dataGridViewProducts.ColumnHeadersDefaultCellStyle.BackColor = Color.FromArgb(47, 54, 64)
        dataGridViewProducts.ColumnHeadersDefaultCellStyle.ForeColor = Color.White
        dataGridViewProducts.ColumnHeadersDefaultCellStyle.Font = New System.Drawing.Font("Verdana", 15, FontStyle.Italic)
        dataGridViewProducts.ColumnHeadersDefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter
        dataGridViewProducts.GridColor = Color.DarkBlue
        dataGridViewProducts.AllowUserToAddRows = False
        dataGridViewProducts.EnableHeadersVisualStyles = False

    End Sub

    ' picturebox close
    Private Sub pictureBoxClose_Click(sender As Object, e As EventArgs) Handles pictureBoxClose.Click

        ' close the connection
        If ConnectionState.Open = connection.State Then
            connection.Close()
        End If

        System.Environment.[Exit](System.Environment.ExitCode)

    End Sub

    ' button search
    Private Sub buttonSearch_Click(sender As Object, e As EventArgs) Handles buttonSearch.Click

        Try
            Dim id As Integer = CInt(numericUpDownID.Value)
            Dim row As DataRow() = table.[Select]("id = " & id)

            If row.Length > 0 Then
                textBoxName.Text = row(0)(1).ToString()
                comboBoxCategories.Text = row(0)(2).ToString()
                NumericUpDownQuantity.Text = row(0)(3).ToString()
                textBoxPrice.Text = row(0)(4).ToString()
                textBoxImagePath.Text = row(0)(5).ToString()
                pictureBoxProduct.Image = Image.FromFile(row(0)(5).ToString())
            Else
                textBoxName.Text = ""
                comboBoxCategories.SelectedIndex = 0
                NumericUpDownQuantity.Text = ""
                textBoxPrice.Text = ""
                textBoxImagePath.Text = ""
                pictureBoxProduct.Image = Nothing
                MessageBox.Show("No Product With This ID, Enter a New One", "Product Not found", MessageBoxButtons.OK, MessageBoxIcon.Information)
            End If

        Catch ex As Exception
            MessageBox.Show("Error -> " & ex.Message, "Product Not found", MessageBoxButtons.OK, MessageBoxIcon.[Error])
        End Try

    End Sub

    ' button browse image
    Private Sub buttonBrowse_Click(sender As Object, e As EventArgs) Handles buttonBrowse.Click

        Dim opf As OpenFileDialog = New OpenFileDialog()
        opf.Filter = "Choose Image(*.jpg;*.png;*.gif)|*.jpg;*.png;*.gif"

        If opf.ShowDialog() = DialogResult.OK Then
            pictureBoxProduct.Image = Image.FromFile(opf.FileName)
            textBoxImagePath.Text = opf.FileName
        End If

    End Sub

    ' button add product
    Private Sub Button_Add_Click(sender As Object, e As EventArgs) Handles Button_Add.Click

        Try
            Dim name As String = textBoxName.Text
            Dim category As String = comboBoxCategories.Text
            Dim quantity As Integer = Integer.Parse(NumericUpDownQuantity.Text)
            Dim price As Single = Single.Parse(textBoxPrice.Text)
            Dim imagePath As String = textBoxImagePath.Text
            Dim command As MySqlCommand = New MySqlCommand("INSERT INTO `product`(`name`, `category`, `quantity`, `price`, `picture`) VALUES (@nm,@ctg,@qty,@prc,@pic)", connection)
            command.Parameters.Add("@nm", MySqlDbType.VarChar).Value = name
            command.Parameters.Add("@ctg", MySqlDbType.VarChar).Value = category
            command.Parameters.Add("@qty", MySqlDbType.Int16).Value = quantity
            command.Parameters.Add("@prc", MySqlDbType.Float).Value = price
            command.Parameters.Add("@pic", MySqlDbType.VarChar).Value = imagePath

            If ConnectionState.Closed = connection.State Then
                connection.Open()
            End If

            If command.ExecuteNonQuery() = 1 Then
                showProducts()
                MessageBox.Show("The Product Has Been Added Successfully", "Product Added", MessageBoxButtons.OK, MessageBoxIcon.Information)
            Else
                MessageBox.Show("The Product Hasn't Been Added", "Product Not Added", MessageBoxButtons.OK, MessageBoxIcon.Warning)
            End If

        Catch ex As Exception
            MessageBox.Show("Enter The Product Info", "Empty Fileds", MessageBoxButtons.OK, MessageBoxIcon.[Stop])
        End Try


    End Sub


    ' button edit product
    Private Sub Button_Edit_Click(sender As Object, e As EventArgs) Handles Button_Edit.Click

        Try
            Dim id As Integer = CInt(numericUpDownID.Value)
            Dim name As String = textBoxName.Text
            Dim category As String = comboBoxCategories.Text
            Dim quantity As Integer = Integer.Parse(NumericUpDownQuantity.Text)
            Dim price As Single = Single.Parse(textBoxPrice.Text)
            Dim imagePath As String = textBoxImagePath.Text
            Dim command As MySqlCommand = New MySqlCommand("UPDATE `product` SET `name`=@nm,`category`=@ctg,`quantity`=@qty,`price`=@prc,`picture`=@pic WHERE `id` = @id", connection)
            command.Parameters.Add("@nm", MySqlDbType.VarChar).Value = name
            command.Parameters.Add("@ctg", MySqlDbType.VarChar).Value = category
            command.Parameters.Add("@qty", MySqlDbType.Int16).Value = quantity
            command.Parameters.Add("@prc", MySqlDbType.Float).Value = price
            command.Parameters.Add("@pic", MySqlDbType.VarChar).Value = imagePath
            command.Parameters.Add("@id", MySqlDbType.Int16).Value = id

            If ConnectionState.Closed = connection.State Then
                connection.Open()
            End If

            If command.ExecuteNonQuery() = 1 Then
                showProducts()
                MessageBox.Show("The Product Info Has Been Edited Successfully", "Edit Product", MessageBoxButtons.OK, MessageBoxIcon.Information)
            Else
                MessageBox.Show("The Product Info Hasn't Been Edited", "Product Not Edited", MessageBoxButtons.OK, MessageBoxIcon.Warning)
            End If

        Catch ex As Exception
            MessageBox.Show("Enter The Product Info", "Empty Fileds", MessageBoxButtons.OK, MessageBoxIcon.[Stop])
        End Try

    End Sub

    ' button remove product
    Private Sub Button_Remove_Click(sender As Object, e As EventArgs) Handles Button_Remove.Click

        Dim id As Integer = CInt(numericUpDownID.Value)
        Dim command As MySqlCommand = New MySqlCommand("DELETE FROM `product` WHERE `id` = @id", connection)
        command.Parameters.Add("@id", MySqlDbType.Int16).Value = id

        If ConnectionState.Closed = connection.State Then
            connection.Open()
        End If

        If MessageBox.Show("Are You Sure You Want To Remove This Product", "Remove Product", MessageBoxButtons.YesNo, MessageBoxIcon.Question) = System.Windows.Forms.DialogResult.Yes Then

            If command.ExecuteNonQuery() = 1 Then
                numericUpDownID.Value = 0
                textBoxName.Text = ""
                comboBoxCategories.SelectedIndex = 0
                NumericUpDownQuantity.Text = ""
                textBoxPrice.Text = ""
                textBoxImagePath.Text = ""
                pictureBoxProduct.Image = Nothing
                showProducts()
                MessageBox.Show("Product Removed Successfully", "Remove Product", MessageBoxButtons.OK, MessageBoxIcon.Information)
            Else
                MessageBox.Show("Product NOT Removed", "Remove Product", MessageBoxButtons.OK, MessageBoxIcon.[Error])
            End If
        End If


    End Sub


    ' button clear fields
    Private Sub buttonClear_Click(sender As Object, e As EventArgs) Handles buttonClear.Click

        textBoxName.Text = ""
        comboBoxCategories.SelectedIndex = 0
        NumericUpDownQuantity.Text = ""
        textBoxPrice.Text = ""
        textBoxImagePath.Text = ""
        pictureBoxProduct.Image = Nothing

    End Sub


    ' button display first product
    Private Sub buttonFirst_Click(sender As Object, e As EventArgs) Handles buttonFirst.Click

        productIndex = 0
        displayInfo(productIndex)

    End Sub


    ' button display next product
    Private Sub buttonNext_Click(sender As Object, e As EventArgs) Handles buttonNext.Click

        productIndex += 1

        If productIndex > table.Rows.Count - 1 Then
            productIndex = table.Rows.Count - 1
        End If

        displayInfo(productIndex)

    End Sub


    ' button display previous product
    Private Sub buttonPrevious_Click(sender As Object, e As EventArgs) Handles buttonPrevious.Click

        productIndex -= 1

        If productIndex < 0 Then
            productIndex = 0
        End If

        displayInfo(productIndex)

    End Sub


    ' button display last product
    Private Sub buttonLast_Click(sender As Object, e As EventArgs) Handles buttonLast.Click

        productIndex = table.Rows.Count - 1
        displayInfo(productIndex)

    End Sub

    ' display the selected product from datagridview
    Private Sub dataGridViewProducts_Click(sender As Object, e As EventArgs) Handles dataGridViewProducts.Click

        Dim selectedRow As DataGridViewRow = dataGridViewProducts.CurrentRow
        numericUpDownID.Value = Integer.Parse(selectedRow.Cells(0).Value.ToString())
        textBoxName.Text = selectedRow.Cells(1).Value.ToString()
        comboBoxCategories.Text = selectedRow.Cells(2).Value.ToString()
        NumericUpDownQuantity.Text = selectedRow.Cells(3).Value.ToString()
        textBoxPrice.Text = selectedRow.Cells(4).Value.ToString()
        textBoxImagePath.Text = selectedRow.Cells(5).Value.ToString()
        pictureBoxProduct.Image = Image.FromFile(selectedRow.Cells(5).Value.ToString())

    End Sub


   ' textBox Price KeyUp - check if the price is correct
    Private Sub textBoxPrice_KeyUp(sender As Object, e As KeyEventArgs) Handles textBoxPrice.KeyUp

        Try
            Dim price As Single = Single.Parse(textBoxPrice.Text)
        Catch ex As Exception
            MessageBox.Show("Enter a Valid Price ( " & ex.Message & " )", "Invalid Price", MessageBoxButtons.OK, MessageBoxIcon.[Error])
            textBoxPrice.Text = ""
        End Try

    End Sub


    ' create a function to display product in textboxes and picturebox
    Public Sub displayInfo(ByVal index As Integer)
        dataGridViewProducts.ClearSelection()
        dataGridViewProducts.Rows(index).Selected = True
        numericUpDownID.Value = CInt(table.Rows(index)(0))
        textBoxName.Text = table.Rows(index)(1).ToString()
        comboBoxCategories.Text = table.Rows(index)(2).ToString()
        NumericUpDownQuantity.Text = table.Rows(index)(3).ToString()
        textBoxPrice.Text = table.Rows(index)(4).ToString()
        textBoxImagePath.Text = table.Rows(index)(5).ToString()
        pictureBoxProduct.Image = Image.FromFile(table.Rows(index)(5).ToString())
    End Sub


    ' create a function to show products in the datagridview
    Public Sub showProducts()
        table.Clear()
        dataGridViewProducts.DataSource = table
        Dim adapter As MySqlDataAdapter = New MySqlDataAdapter("SELECT * FROM `product`", connection)
        adapter.Fill(table)
        dataGridViewProducts.DataSource = table
        label_ProductsCount.Text = table.Rows.Count.ToString() & " Product"
    End Sub


End Class


OUTPUT:

VB.Net Project Source Code With MySQL Database

VB.Net Project Source Code With MySQL Database