1000 Projects

Sample Visual Basic Project Free Download

September 2, 2012

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.


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)
{

}
}
}

Download Sample Visual basic project source code free download.


The following two tabs change content below.
Hi, Find more on FB...

Latest posts by Ramesh Gavva/Kasarla shanthan (see all)

posted in CSE Project Reports, CSE Projects with Source Code, VB projects by Ramesh Gavva/Kasarla shanthan

Follow comments via the RSS Feed | Leave a comment | Trackback URL


‹‹‹ MCA Project Report Submitted in Partial Fulfillment of the Requirements

B Tech Mini Project on Mobile Bill Management System ›››

Custom Search

1 Comment to "Sample Visual Basic Project Free Download"

  1. samuel wrote:

    any program with free source code downlload

Leave Your Comment

 
Copyright 2014 | Powered by 1000Projects.org | Developed by WikiHands.