How do I create a new record in a database?

I am using the following code: Dim dr As DataRow dr = IdeaDataSet.TblManagers.NewRow() With dr .Item(“MgrName”) = MgrNameTextBox.Text .Item(“Position”) = PositionTextBox.Text .Item(“E-mail”) = E_mailTextBox.Text .Item(“UserID”) = UserIDTextBox.Text .Item(“LevelFlag”) = CheckBox End With Try IdeaDataSet.TblManagers.Rows.Add(dr) Catch ex As Exception End Try But it does not save it to the actual database. The same happens when I […]

VB.NET: application.restart() enters break mode (x-post from /r/dotnet)

Exactly what the title says. When I’m debugging my project and I enter the part where the application restarts (using Application.Restart() ) Visual Studio opens break mode. Is there any way to prevent this from happening and restart the application? It also sometimes comes up with System.ComponentModel.Win32Exception: ‘The operation was canceled by the user’ Is […]