The document contains code for multiple forms in a Visual Basic application, including Form9, Form10, and Form11. Each form has button click events that open other forms and perform database operations, such as inserting data into an Access database. The code demonstrates the use of OleDbConnection for database connectivity and basic form navigation.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
10 views6 pages
Anurag 4
The document contains code for multiple forms in a Visual Basic application, including Form9, Form10, and Form11. Each form has button click events that open other forms and perform database operations, such as inserting data into an Access database. The code demonstrates the use of OleDbConnection for database connectivity and basic form navigation.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 6
FORM3CODING
Public Class Form9
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim a As New Form10 a.Show() Me.Hide() End Sub Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click Dim b As New Form11 b.Show() Me.Hide() End Sub Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button4.Click Dim c As New Form12 c.Show() Me.Hide() End Sub Private Sub Button5_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button5.Click Dim d As New form13 d.show() Me.Hide() End Sub
Private Sub Button6_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
Handles Button6.Click End End Sub Private Sub Button7_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button7.Click Dim f As New Form1 f.Show() Me.Hide() End Sub Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click Dim h As New Form5 h.Show() Me.Hide() End Sub Private Sub Button8_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button8.Click Dim k As New Form17 k.Show() Me.Hide() End Sub FORM4 FORM4 CODING Imports System.Data.OleDb Public Class Form10 Dim con As New OleDbConnection Dim dps, sql As String Private Sub Form10_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Me.ItemTableAdapter.Fill(Me.Tender1DataSet.item) End Sub Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim a As New Form9 a.Show() Me.Hide() End Sub End Class FORM5 FORM5 CODING Imports System.Data.OleDb Public Class Form11 Dim DataSet1 As New DataSet Dim con As New OleDbConnection Dim com As New OleDbCommand Dim da As New OleDbDataAdapter Dim rd As OleDbDataReader Dim dps, sql As String Private Sub Form11_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load dps = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=E:\WindowsApplication3\WindowsApplication3\tender1.accdb" con.ConnectionString = dps con.Open() End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)