Download as pdf or txt
Download as pdf or txt
You are on page 1of 24

A

Micro-Project Report
On

Milk dairy management system using VB.Net

Submitted By:

Name of Student Enrollment No

1. Tirth .m. patel 2105300269

2. Abhishek .d. londhe 2105300271

3. Soham .v. more 2105300283

4. Om.V.Adhav 2105300279

Under the Guidance of


Prof: S.D.Desai

MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION, Mumbai

Mahavir Polytechnic, Nashik.(0530)


DEPARTMENT OF COMPUTER ENGINEERIN G
MAHAVIR POLYTECHNIC, NASHIK.
1|P a g e
Certificate

This is to certify that the Micro Project Report on “Milk dairy management system using
VB.Net ” is satisfactorily completed and submitted in the partial fulfillment of the
requirement for Subject "GUI Application Development Using VB.Net ” in Second Year
Computer Engineering in Semester Fourth of Academic Year 2022-2023

Tirth patel 2105300269


Abhishek londhe 2105300271
Soham more 2105300283
Om Adhav 2105300279

Prof. S.D.Desai Prof: Anup Sonawane Prof. S.V.sagre

Subject Techer Head of Department Principal

2|P a g e
ACKNOWLEDGEMENT

It is my Proud privilege to express a deep sense of gratitude and regard to my guide Prof
S.D.Desai Academic Co-ordinator of Mahavir polytechnic nashik. He Initiative and Keep interest in every
step provided a constant source ofinspiration to our group of intensive in this work.

I wish to place on record my sincere thanks to Prof. Anup Sonawane


H.O.D. of Computer Engineering Department, Mahavir polytechnic nashik who provided the Valuable
guidance and constant encouragement to complete thisdissertation.

There were also some turning point where for a moment , I found myself little depressed and at
these very critical junctures, I am proud to confess our teacher staff, which always appeared as a lamp
post of live inspiration.

So my Sincere thanks to all Professors, Department teaching, Non-Teaching Staff & my group
Members , all my friends who directly or indirectly helped me in the development & evolution of my
thoughts in completing this work.

TIRTH PATEL
Enrollment No. 2105300269
ABHISHEK LONDHE
Enrollment No. 2105300271
Soham More
Enrollment No. 2105300283
Om Adhav
Enrollment no: 2105300279

3|P a g e
REQUIREMENT

This process is adopted when management of the system development, Personnel decide that the particular system needs

improvement. The system development life cycle is the set of activities, carried out by the analyst, designers and users to

develop and implement a system. The systems that are present in the nature follow common life cycle pattern. For example

consider the raining system. Initially the rain falls into the river, river flows into sea, the sea water evaporates to form vapors,

the vapors form clouds which again bring rain. Similarly consider a manmade system initially a system is analyzed, designed

and made operational by the efforts of system analysis. After successful operation or a number of users, the system becomes

less and less effective by change in the environment. So these changes have to be incorporated in to the system by minor

modifications. So the general activities from the life cycle of the system are given below:

• Select ion and identification of the system to be studied

• Preliminary study

• Defining the system

• Design and development of the system

Hardware Requirements:

• i-5 Generation Processor

• 6 GB RAM

• Windows XP/7

• SELENIUM

4|P a g e
5|P a g e
6|P a g e
INDEX

SR.NO CONTENT PAGE NO.


.

1 ABSTRACT 05

2 INTRODUCTION 06

3 CODING OF PROJECT 07

4 OUTPUT OF PROJECT 18

CONCLUSION
5 20

6 REFERENCE 21

7|P a g e
➢ PROJECT ABSTRACT

• Milk Dairy Management System project is developed using VB.NET. The Project is
based on the concept of managing dairy products and their records. Talking about the
project, there’s a login system. The user can easily add dairy products, manage users, fate
prices, and so on here.

• Design of this is so simple that the user won’t find difficulties while working on it. Milk
Dairy Management System project helps the user for easy management of transaction
activities. You have to change the Data Source from the current one to your own before
running it. This project is easy to operate and understood by the users.Features of Milk
Dairy Management System using VB.NET :

• Talking about the features of this system, the user can add dairy products by entering the
account number, name, address, dairy number, liter, fate, price per liter, and total. Simply,
the user can also set fate price by entering fate id, current, and new fate price. In order to
search an account, the user has to provide an account number. The remaining feature
includes searching milk records and adding new account which can be done by providing
the account number, name, address, mobile, and center.

8|P a g e
➢ INTRODUCTION

• Milk Dairy Management System project is developed using VB.NET. The Project is
based on the concept of managing dairy products and their records. Talking about the
project, there’s a login system. The user can easily add dairy products, manage users, fate
prices, and so on here.

• Talking about the features of this system, the user can add dairy products by entering the
account number, name, address, dairy number, liter, fate, price per liter, and total. Simply,
the user can also set fate price by entering fate id, current, and new fate price. In order to
search an account, the user has to provide an account number. The remaining feature
includes searching milk records and adding new account which can be done by providing
the account number, name, address, mobile, and center.

• Design of this is so simple that the user won’t find difficulties while working on it. Milk
Dairy Management System project helps the user for easy management of transaction
activities. You have to change the DataSource from the current one to your own before
running it. This project is easy to operate and understood by the users. To run this project
you must have installed Visual Studio IDE on your PC. Milk Dairy Management System
in VB.NET is free to download with source code. For the project demo, have a look at the
video below.

• Features:
1. Login System
2. Add Dairy Products
3. Set fate price
4. CRUD Account
5. Search account
6. Search milk dairy products

9|P a g e
➢ Coding of Project

Public Class Form1


Private Sub button1_Click(sender As Object, e As EventArgs) Handles button1.Click
If textBox1.Text = "patil" And textBox2.Text = "co4i" Then
MessageBox.Show("Welcome Admin")

textBox1.Text = ""
textBox2.Text = ""
Hide()
Home.ShowDialog()

Else
MessageBox.Show("login fail")
End If

End Sub
End Class

<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()>
Partial Class Home
Inherits System.Windows.Forms.Form

'Form overrides dispose to clean up the component list.


<System.Diagnostics.DebuggerNonUserCode()>
Protected Overrides Sub Dispose(ByVal disposing As Boolean)
Try
If disposing AndAlso components IsNot Nothing Then
components.Dispose()
End If
Finally
MyBase.Dispose(disposing)
End Try
End Sub

'Required by the Windows Form Designer


Private components As System.ComponentModel.IContainer

'NOTE: The following procedure is required by the Windows Form Designer


10 | P a g e
'It can be modified using the Windows Form Designer.
'Do not modify it using the code editor.
<System.Diagnostics.DebuggerStepThrough()>
Private Sub InitializeComponent()
Me.menuStrip1 = New System.Windows.Forms.MenuStrip()
Me.milkDairyToolStripMenuItem = New System.Windows.Forms.ToolStripMenuItem()
Me.setFatePriceToolStripMenuItem = New System.Windows.Forms.ToolStripMenuItem()
Me.searchAccountToolStripMenuItem = New System.Windows.Forms.ToolStripMenuItem()
Me.searchMilkDairyRecordToolStripMenuItem = New System.Windows.Forms.ToolStripMenuItem()
Me.newAccountToolStripMenuItem = New System.Windows.Forms.ToolStripMenuItem()
Me.exitToolStripMenuItem = New System.Windows.Forms.ToolStripMenuItem()
Me.pictureBox1 = New System.Windows.Forms.PictureBox()
Me.menuStrip1.SuspendLayout()
CType(Me.pictureBox1, System.ComponentModel.ISupportInitialize).BeginInit()
Me.SuspendLayout()
'
'menuStrip1
'
Me.menuStrip1.Font = New System.Drawing.Font("Microsoft Sans Serif", 9.75!,
System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
Me.menuStrip1.Items.AddRange(New System.Windows.Forms.ToolStripItem()
{Me.milkDairyToolStripMenuItem, Me.setFatePriceToolStripMenuItem,
Me.searchAccountToolStripMenuItem, Me.searchMilkDairyRecordToolStripMenuItem,
Me.newAccountToolStripMenuItem, Me.exitToolStripMenuItem})
Me.menuStrip1.Location = New System.Drawing.Point(0, 0)
Me.menuStrip1.Name = "menuStrip1"
Me.menuStrip1.Size = New System.Drawing.Size(739, 84)
Me.menuStrip1.TabIndex = 1
Me.menuStrip1.Text = "menuStrip1"
'
'milkDairyToolStripMenuItem
'
Me.milkDairyToolStripMenuItem.Image =
Global.MilkDairyManagementSystemVB.My.Resources.Resources.milklogo
Me.milkDairyToolStripMenuItem.ImageScaling =
System.Windows.Forms.ToolStripItemImageScaling.None
Me.milkDairyToolStripMenuItem.Name = "milkDairyToolStripMenuItem"
Me.milkDairyToolStripMenuItem.Size = New System.Drawing.Size(89, 80)
Me.milkDairyToolStripMenuItem.Text = "Milk Dairy"
Me.milkDairyToolStripMenuItem.TextImageRelation =
System.Windows.Forms.TextImageRelation.TextAboveImage
'
'setFatePriceToolStripMenuItem
'
Me.setFatePriceToolStripMenuItem.Image =
Global.MilkDairyManagementSystemVB.My.Resources.Resources.ppp
Me.setFatePriceToolStripMenuItem.ImageScaling =
System.Windows.Forms.ToolStripItemImageScaling.None
Me.setFatePriceToolStripMenuItem.Name = "setFatePriceToolStripMenuItem"
11 | P a g e
Me.setFatePriceToolStripMenuItem.Size = New System.Drawing.Size(118, 80)
Me.setFatePriceToolStripMenuItem.Text = "Set Fate Price"
Me.setFatePriceToolStripMenuItem.TextImageRelation =
System.Windows.Forms.TextImageRelation.TextAboveImage
'
'searchAccountToolStripMenuItem
'
Me.searchAccountToolStripMenuItem.Image =
Global.MilkDairyManagementSystemVB.My.Resources.Resources.searchacc
Me.searchAccountToolStripMenuItem.ImageScaling =
System.Windows.Forms.ToolStripItemImageScaling.None
Me.searchAccountToolStripMenuItem.Name = "searchAccountToolStripMenuItem"
Me.searchAccountToolStripMenuItem.Size = New System.Drawing.Size(128, 80)
Me.searchAccountToolStripMenuItem.Text = "Search Account"
Me.searchAccountToolStripMenuItem.TextImageRelation =
System.Windows.Forms.TextImageRelation.TextAboveImage
'
'searchMilkDairyRecordToolStripMenuItem
'
Me.searchMilkDairyRecordToolStripMenuItem.Image =
Global.MilkDairyManagementSystemVB.My.Resources.Resources.searchrec
Me.searchMilkDairyRecordToolStripMenuItem.ImageScaling =
System.Windows.Forms.ToolStripItemImageScaling.None
Me.searchMilkDairyRecordToolStripMenuItem.Name = "searchMilkDairyRecordToolStripMenuItem"
Me.searchMilkDairyRecordToolStripMenuItem.Size = New System.Drawing.Size(197, 80)
Me.searchMilkDairyRecordToolStripMenuItem.Text = "Search Milk Dairy Record"
Me.searchMilkDairyRecordToolStripMenuItem.TextImageRelation =
System.Windows.Forms.TextImageRelation.TextAboveImage
'
'newAccountToolStripMenuItem
'
Me.newAccountToolStripMenuItem.Image =
Global.MilkDairyManagementSystemVB.My.Resources.Resources.add_acc
Me.newAccountToolStripMenuItem.ImageScaling =
System.Windows.Forms.ToolStripItemImageScaling.None
Me.newAccountToolStripMenuItem.Name = "newAccountToolStripMenuItem"
Me.newAccountToolStripMenuItem.Size = New System.Drawing.Size(109, 80)
Me.newAccountToolStripMenuItem.Text = "New Account"
Me.newAccountToolStripMenuItem.TextImageRelation =
System.Windows.Forms.TextImageRelation.TextAboveImage
'
'exitToolStripMenuItem
'
Me.exitToolStripMenuItem.Image =
Global.MilkDairyManagementSystemVB.My.Resources.Resources._exit
Me.exitToolStripMenuItem.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None
Me.exitToolStripMenuItem.Name = "exitToolStripMenuItem"
Me.exitToolStripMenuItem.Size = New System.Drawing.Size(72, 80)
Me.exitToolStripMenuItem.Text = "Exit"
12 | P a g e
Me.exitToolStripMenuItem.TextImageRelation =
System.Windows.Forms.TextImageRelation.TextAboveImage
'
'pictureBox1
'
Me.pictureBox1.Image = Global.MilkDairyManagementSystemVB.My.Resources.Resources.dairymain
Me.pictureBox1.Location = New System.Drawing.Point(12, 87)
Me.pictureBox1.Name = "pictureBox1"
Me.pictureBox1.Size = New System.Drawing.Size(715, 222)
Me.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom
Me.pictureBox1.TabIndex = 62
Me.pictureBox1.TabStop = False
'
'Home
'
Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!)
Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
Me.ClientSize = New System.Drawing.Size(739, 401)
Me.Controls.Add(Me.pictureBox1)
Me.Controls.Add(Me.menuStrip1)
Me.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle
Me.MaximizeBox = False
Me.Name = "Home"
Me.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen
Me.Text = "Dashboard"
Me.menuStrip1.ResumeLayout(False)
Me.menuStrip1.PerformLayout()
CType(Me.pictureBox1, System.ComponentModel.ISupportInitialize).EndInit()
Me.ResumeLayout(False)
Me.PerformLayout()

End Sub

Private WithEvents menuStrip1 As MenuStrip


Private WithEvents milkDairyToolStripMenuItem As ToolStripMenuItem
Private WithEvents setFatePriceToolStripMenuItem As ToolStripMenuItem
Private WithEvents searchAccountToolStripMenuItem As ToolStripMenuItem
Private WithEvents searchMilkDairyRecordToolStripMenuItem As ToolStripMenuItem
Private WithEvents newAccountToolStripMenuItem As ToolStripMenuItem
Private WithEvents exitToolStripMenuItem As ToolStripMenuItem
Private WithEvents pictureBox1 As PictureBox
End Class

Private Sub InitializeComponent()


Me.label9 = New System.Windows.Forms.Label()
Me.textBox8 = New System.Windows.Forms.TextBox()
Me.button2 = New System.Windows.Forms.Button()
13 | P a g e
Me.button1 = New System.Windows.Forms.Button()
Me.textBox7 = New System.Windows.Forms.TextBox()
Me.textBox6 = New System.Windows.Forms.TextBox()
Me.textBox5 = New System.Windows.Forms.TextBox()
Me.textBox4 = New System.Windows.Forms.TextBox()
Me.textBox3 = New System.Windows.Forms.TextBox()
Me.textBox2 = New System.Windows.Forms.TextBox()
Me.label8 = New System.Windows.Forms.Label()
Me.label7 = New System.Windows.Forms.Label()
Me.label6 = New System.Windows.Forms.Label()
Me.label5 = New System.Windows.Forms.Label()
Me.label4 = New System.Windows.Forms.Label()
Me.label1 = New System.Windows.Forms.Label()
Me.textBox1 = New System.Windows.Forms.TextBox()
Me.label3 = New System.Windows.Forms.Label()
Me.label2 = New System.Windows.Forms.Label()
Me.pictureBox1 = New System.Windows.Forms.PictureBox()
CType(Me.pictureBox1, System.ComponentModel.ISupportInitialize).BeginInit()
Me.SuspendLayout()
'
'label9
'
Me.label9.AutoSize = True
Me.label9.Font = New System.Drawing.Font("Microsoft Sans Serif", 9.75!,
System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
Me.label9.Location = New System.Drawing.Point(187, 151)
Me.label9.Name = "label9"
Me.label9.Size = New System.Drawing.Size(49, 16)
Me.label9.TabIndex = 77
Me.label9.Text = "Name"
'
'textBox8
'
Me.textBox8.Font = New System.Drawing.Font("Microsoft Sans Serif", 9.75!,
System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
Me.textBox8.Location = New System.Drawing.Point(257, 463)
Me.textBox8.Name = "textBox8"
Me.textBox8.Size = New System.Drawing.Size(149, 22)
Me.textBox8.TabIndex = 76
'
'button2
'
Me.button2.Font = New System.Drawing.Font("Microsoft Sans Serif", 9.75!,
System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
Me.button2.Location = New System.Drawing.Point(306, 524)
Me.button2.Name = "button2"
Me.button2.Size = New System.Drawing.Size(81, 28)
Me.button2.TabIndex = 75
Me.button2.Text = "Reset"
14 | P a g e
Me.button2.UseVisualStyleBackColor = True
'
'button1
'
Me.button1.Font = New System.Drawing.Font("Microsoft Sans Serif", 9.75!,
System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
Me.button1.Location = New System.Drawing.Point(198, 524)
Me.button1.Name = "button1"
Me.button1.Size = New System.Drawing.Size(81, 28)
Me.button1.TabIndex = 74
Me.button1.Text = "Add"
Me.button1.UseVisualStyleBackColor = True
'
'textBox7
'
Me.textBox7.Font = New System.Drawing.Font("Microsoft Sans Serif", 9.75!,
System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
Me.textBox7.Location = New System.Drawing.Point(257, 412)
Me.textBox7.Name = "textBox7"
Me.textBox7.Size = New System.Drawing.Size(149, 22)
Me.textBox7.TabIndex = 73
'
'textBox6
'
Me.textBox6.Font = New System.Drawing.Font("Microsoft Sans Serif", 9.75!,
System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
Me.textBox6.Location = New System.Drawing.Point(257, 357)
Me.textBox6.Name = "textBox6"
Me.textBox6.Size = New System.Drawing.Size(149, 22)
Me.textBox6.TabIndex = 72
'
'textBox5
'
Me.textBox5.Font = New System.Drawing.Font("Microsoft Sans Serif", 9.75!,
System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
Me.textBox5.Location = New System.Drawing.Point(257, 306)
Me.textBox5.Name = "textBox5"
Me.textBox5.Size = New System.Drawing.Size(149, 22)
Me.textBox5.TabIndex = 71
'
'textBox4
'
Me.textBox4.Font = New System.Drawing.Font("Microsoft Sans Serif", 9.75!,
System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
Me.textBox4.Location = New System.Drawing.Point(257, 252)
Me.textBox4.Name = "textBox4"
Me.textBox4.Size = New System.Drawing.Size(149, 22)
Me.textBox4.TabIndex = 70
'
15 | P a g e
'textBox3
'
Me.textBox3.Font = New System.Drawing.Font("Microsoft Sans Serif", 9.75!,
System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
Me.textBox3.Location = New System.Drawing.Point(257, 201)
Me.textBox3.Name = "textBox3"
Me.textBox3.Size = New System.Drawing.Size(149, 22)
Me.textBox3.TabIndex = 69
'
'textBox2
'
Me.textBox2.Font = New System.Drawing.Font("Microsoft Sans Serif", 9.75!,
System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
Me.textBox2.Location = New System.Drawing.Point(257, 148)
Me.textBox2.Name = "textBox2"
Me.textBox2.Size = New System.Drawing.Size(149, 22)
Me.textBox2.TabIndex = 68
'
'label8
'
Me.label8.AutoSize = True
Me.label8.Font = New System.Drawing.Font("Microsoft Sans Serif", 9.75!,
System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
Me.label8.Location = New System.Drawing.Point(192, 466)
Me.label8.Name = "label8"
Me.label8.Size = New System.Drawing.Size(44, 16)
Me.label8.TabIndex = 67
Me.label8.Text = "Total"
'
'label7
'
Me.label7.AutoSize = True
Me.label7.Font = New System.Drawing.Font("Microsoft Sans Serif", 9.75!,
System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
Me.label7.Location = New System.Drawing.Point(157, 411)
Me.label7.Name = "label7"
Me.label7.Size = New System.Drawing.Size(79, 16)
Me.label7.TabIndex = 66
Me.label7.Text = "Price/Liter"
'
'label6
'
Me.label6.AutoSize = True
Me.label6.Font = New System.Drawing.Font("Microsoft Sans Serif", 9.75!,
System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
Me.label6.Location = New System.Drawing.Point(197, 360)
Me.label6.Name = "label6"
Me.label6.Size = New System.Drawing.Size(39, 16)
Me.label6.TabIndex = 65
16 | P a g e
Me.label6.Text = "Fate"
'
'label5
'
Me.label5.AutoSize = True
Me.label5.Font = New System.Drawing.Font("Microsoft Sans Serif", 9.75!,
System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
Me.label5.Location = New System.Drawing.Point(198, 306)
Me.label5.Name = "label5"
Me.label5.Size = New System.Drawing.Size(38, 16)
Me.label5.TabIndex = 64
Me.label5.Text = "Liter"
'
'label4
'
Me.label4.AutoSize = True
Me.label4.Font = New System.Drawing.Font("Microsoft Sans Serif", 9.75!,
System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
Me.label4.Location = New System.Drawing.Point(136, 255)
Me.label4.Name = "label4"
Me.label4.Size = New System.Drawing.Size(100, 16)
Me.label4.TabIndex = 63
Me.label4.Text = "Dairy number"
'
'label1
'
Me.label1.AutoSize = True
Me.label1.Font = New System.Drawing.Font("Microsoft Sans Serif", 9.75!,
System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
Me.label1.Location = New System.Drawing.Point(170, 202)
Me.label1.Name = "label1"
Me.label1.Size = New System.Drawing.Size(66, 16)
Me.label1.TabIndex = 62
Me.label1.Text = "Address"
'
'textBox1
'
Me.textBox1.Font = New System.Drawing.Font("Microsoft Sans Serif", 9.75!,
System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
Me.textBox1.Location = New System.Drawing.Point(257, 93)
Me.textBox1.Name = "textBox1"
Me.textBox1.Size = New System.Drawing.Size(149, 22)
Me.textBox1.TabIndex = 60
'
'label3
'
Me.label3.AutoSize = True
Me.label3.Font = New System.Drawing.Font("Microsoft Sans Serif", 9.75!,
System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
17 | P a g e
Me.label3.Location = New System.Drawing.Point(115, 96)
Me.label3.Name = "label3"
Me.label3.Size = New System.Drawing.Size(121, 16)
Me.label3.TabIndex = 59
Me.label3.Text = "Account Number"
'
'label2
'
Me.label2.AutoSize = True
Me.label2.Font = New System.Drawing.Font("Microsoft Sans Serif", 14.25!,
System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
Me.label2.ForeColor = System.Drawing.Color.DarkGreen
Me.label2.Location = New System.Drawing.Point(239, 27)
Me.label2.Name = "label2"
Me.label2.Size = New System.Drawing.Size(100, 24)
Me.label2.TabIndex = 58
Me.label2.Text = "Milk Dairy"
'
'pictureBox1
'
Me.pictureBox1.Image = Global.MilkDairyManagementSystemVB.My.Resources.Resources.dairymain
Me.pictureBox1.Location = New System.Drawing.Point(475, 10)
Me.pictureBox1.Name = "pictureBox1"
Me.pictureBox1.Size = New System.Drawing.Size(100, 57)
Me.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom
Me.pictureBox1.TabIndex = 61
Me.pictureBox1.TabStop = False
'
'MilkDairy
'
Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!)
Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
Me.ClientSize = New System.Drawing.Size(590, 591)
Me.Controls.Add(Me.label9)
Me.Controls.Add(Me.textBox8)
Me.Controls.Add(Me.button2)
Me.Controls.Add(Me.button1)
Me.Controls.Add(Me.textBox7)
Me.Controls.Add(Me.textBox6)
Me.Controls.Add(Me.textBox5)
Me.Controls.Add(Me.textBox4)
Me.Controls.Add(Me.textBox3)
Me.Controls.Add(Me.textBox2)
Me.Controls.Add(Me.label8)
Me.Controls.Add(Me.label7)
Me.Controls.Add(Me.label6)
Me.Controls.Add(Me.label5)
Me.Controls.Add(Me.label4)
Me.Controls.Add(Me.label1)
18 | P a g e
Me.Controls.Add(Me.pictureBox1)
Me.Controls.Add(Me.textBox1)
Me.Controls.Add(Me.label3)
Me.Controls.Add(Me.label2)
Me.FormBorderStyle = System.Windows.Forms.FormBorderStyle.Fixed3D
Me.MaximizeBox = False
Me.Name = "MilkDairy"
Me.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen
Me.Text = "MilkDairy"
CType(Me.pictureBox1, System.ComponentModel.ISupportInitialize).EndInit()
Me.ResumeLayout(False)
Me.PerformLayout()

End Sub

Private WithEvents label9 As Label


Private WithEvents textBox8 As TextBox
Private WithEvents button2 As Button
Private WithEvents button1 As Button
Private WithEvents textBox7 As TextBox
Private WithEvents textBox6 As TextBox
Private WithEvents textBox5 As TextBox
Private WithEvents textBox4 As TextBox
Private WithEvents textBox3 As TextBox
Private WithEvents textBox2 As TextBox
Private WithEvents label8 As Label
Private WithEvents label7 As Label
Private WithEvents label6 As Label
Private WithEvents label5 As Label
Private WithEvents label4 As Label
Private WithEvents label1 As Label
Private WithEvents pictureBox1 As PictureBox
Private WithEvents textBox1 As TextBox
Private WithEvents label3 As Label
Private WithEvents label2 As Label
End Class

Imports System.Data.SqlClient

Public Class MilkDairy


Dim con As SqlConnection
Dim com As SqlCommand
Dim dr As SqlDataReader
Dim gen As String
Dim str As String
Dim getuser As String
Dim da As SqlDataAdapter
Dim dt As DataTable
19 | P a g e
Dim dv As DataView
Dim addmilk As Object
Private Sub button1_Click(sender As Object, e As EventArgs) Handles button1.Click
con = New SqlConnection("Data Source=(LocalDB)\MSSQLLocalDB;AttachDbFilename=F:\Sem.4\extra
vs code\MilkDairyManagementSystemVB\MilkDairyManagementSystemVB\dairy.mdf;Integrated
Security=True")
con.Open()
str = "insert into dairy(acnt_no,name,addr,d_no,liter,fate,pperl,total) values('" + textBox1.Text + "','" +
textBox2.Text + "','" + textBox3.Text + "','" + textBox4.Text + "','" + textBox5.Text + "','" + textBox6.Text +
"','" + textBox7.Text + "','" + textBox8.Text + "')"
com = New SqlCommand(str, con)
com.ExecuteNonQuery()
MsgBox("Dairy Milk Details Inserted Successfully..")
textBox2.Text = ""
textBox3.Text = ""
textBox4.Text = ""
textBox5.Text = ""
textBox6.Text = ""
textBox7.Text = ""
textBox8.Text = ""
textBox1.Text = ""
Hide()

con.Close()
End Sub

Private Sub button2_Click(sender As Object, e As EventArgs) Handles button2.Click


textBox2.Text = ""
textBox3.Text = ""
textBox4.Text = ""
textBox5.Text = ""
textBox6.Text = ""
textBox7.Text = ""
textBox8.Text = ""
textBox1.Text = ""
End Sub

Private Sub MilkDairy_Load(sender As Object, e As EventArgs) Handles MyBase.Load

End Sub
End Class

20 | P a g e
➢ Output :-

21 | P a g e
22 | P a g e
➢ Conclusion

• Milk being bulky and highly perishable collection and processing need to be well located.
Cost effective methods must be employed to keep prices of dairy products at levels where
most consumers can afford. Advertising and promotion will form an essential part of
marketing.
• Processed products have to be moved closer to the consumer in order to promote sales.
Organisations such as Tanzania Bureau of standards has an important role to play to
ensure that high quality products and services are rendered. In undertaking processing the
range of products to be produced must be directed towards consumer needs.

23 | P a g e
➢ REFERENCE

https://download.code-projects.org/details/cfa6188a-72ee-48b3-bfc7-f570b5e7c933

Evaluated by: Name & Signature of Guide

Tirth .M. Patel Prof: S.D.Desai


Abhishek .D. Londhe
Soham .V. More
Om.V. Adhav

24 | P a g e

You might also like