- Код: Выделить всё
Private Sub MainForm_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Me.URLTableTableAdapter.Fill(Me.PasswordsDataBaseDataSet.URLTable)
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim Data As DataRow = PasswordsDataBaseDataSet.URLTable.NewURLTableRow
Data("login") = "test"
Data("password") = "test"
Data("url") = "www.microsft.com"
PasswordsDataBaseDataSet.Tables("URLTable").Rows.Add(Data)
Me.URLTableBindingSource.EndEdit()
Me.URLTableTableAdapter.Update(PasswordsDataBaseDataSet.URLTable)
End Sub