BASİT veritabanı bağlantılı Visual Basic Adres Defteri |
Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
OleDbDataAdapter1.Fill(AdresdefteriDataSet1, "tbl_adres")
ListBox1.DataSource = AdresdefteriDataSet1.Tables("tbl_adres")
ListBox1.DisplayMember = "Adi"
ListBox2.DataSource = AdresdefteriDataSet1.Tables("tbl_adres")
ListBox2.DisplayMember = "Soyadi"
End Sub
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
'OleDbDataAdapter1.Fill(AdresdefteriDataSet1)
End Sub
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
OleDbDataAdapter1.Update(AdresdefteriDataSet1)
MessageBox.Show("Veritabanı Güncellendi", "Güncelleme", _
MessageBoxButtons.OK, MessageBoxIcon.Information)
End Sub
End Class