Computer science , MCA, BCA students can use this sample visual basic project as major or mini project for there college course. Students can gain knowledge on visual basic platform and coding used in this project. 

Here we provide large collection of visual basic, java, C++ , asp.net projects reports with source code for free download.
[cc lang="sql"] namespace Anbardari
{
public partial class Anbar : Form
{
public Anbar()
{
InitializeComponent();
}

private void Anbar_Load(object sender, EventArgs e)
{

this.anbarTableAdapter.Fill(this.anbardariDataSet6.anbar);

}

private void BtnNew_Click(object sender, EventArgs e)
{
SqlConnection conn = new SqlConnection();
conn.ConnectionString = “Data Source=.;AttachDbFilename=I:\\Anbardari\\Anbardari\\anbardari.mdf;Integrated Security=True”;

SqlCommand comm = new SqlCommand();
comm.Connection = conn;
comm.CommandType = CommandType.Text;
comm.CommandText = string.Format(“insert into anbar values(‘{0}’,’{1}’,’{2}’,’{3}’)”,TxtlAnbar_ID.Text, TxtAnbar_Name.Text, TxtAnbar_Zarfiat.Text, TxtAnbar_Noe.Text);

conn.Open();
try
{
comm.ExecuteNonQuery();
}
catch { }
conn.Close();

TxtAnbar_Name.Text = “”;
TxtAnbar_Zarfiat.Text = “”;
TxtlAnbar_ID.Text = “”;
TxtAnbar_Noe.Text = “”;
}

private void BtnUpdate_Click(object sender, EventArgs e)
{
SqlConnection conn = new SqlConnection();
conn.ConnectionString = “Data Source=.;AttachDbFilename=I:\\Anbardari\\Anbardari\\anbardari.mdf;Integrated Security=True”;

SqlCommand comm = new SqlCommand();
comm.Connection = conn;
comm.CommandType = CommandType.Text;
comm.CommandText = string.Format(“update anbar set anbar_name = ‘{0}’, anbar_zarfiat = {1}, anbar_noe = ‘{2}’ where anbar_id = {3}”, TxtAnbar_Name.Text, Convert.ToInt32(TxtAnbar_Zarfiat.Text), TxtAnbar_Noe.Text, Convert.ToInt32(TxtlAnbar_ID.Text));

conn.Open();
try
{
comm.ExecuteNonQuery();
}
catch { }
conn.Close();

TxtAnbar_Name.Text = “”;
TxtAnbar_Zarfiat.Text = “”;
TxtlAnbar_ID.Text = “”;
TxtAnbar_Noe.Text = “”;
}

private void BtnDelete_Click(object sender, EventArgs e)
{
SqlConnection conn = new SqlConnection();
conn.ConnectionString = “Data Source=.;AttachDbFilename=I:\\Anbardari\\Anbardari\\anbardari.mdf;Integrated Security=True”;

SqlCommand comm = new SqlCommand();
comm.Connection = conn;
comm.CommandType = CommandType.Text;
comm.CommandText = string.Format(“delete from anbar where anbarid = {0}”, TxtlAnbar_ID.Text);

conn.Open();
try
{
comm.ExecuteNonQuery();
}
catch { }
conn.Close();

TxtAnbar_Name.Text = “”;
TxtAnbar_Zarfiat.Text = “”;
TxtlAnbar_ID.Text = “”;
TxtAnbar_Noe.Text = “”;

}

private void BtnSearch_Click(object sender, EventArgs e)
{

}
}
}
[/cc] Download Sample Visual basic project source code free download.