1000 Projects

1000Projects is offering Free Computer Science Projects, Project Oriented Classroom Trainings on Java, .Net & SQL Server.

Sample Visual Basic Project Free Download

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

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, We kasarla shanthan and Ramesh Gavva graduated Btech from VTU / JNTU & former employees of Infrotrack / Wipro Technologies . We basically interested on web development from the graduation period. We are interested to write blogs on Projects and technology. By that initiation we created several websites including 1000projects.org.Our Hobbies are poetry, reading books, story writing writing, and web development.

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



‹‹‹ 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

 
Powered by 1000Projects.org , All rights Reserved, Copyright Policy