Try
Me.InsCom.CommandText = "Insert into Users values(" & Me.txtUsername.Text & "," & Me.txtPassword.Text & ",User)"
Me.InsCom.Connection = Me.Con
Me.DAUser.InsertCommand = InsCom
Con.Open()
Me.InsCom.CommandText = "AddNewUser"
Me.InsCom.CommandType = CommandType.StoredProcedure
Me.InsCom.Parameters.Add("@userid", SqlDbType.NVarChar, 50).Value = Me.txtUsername.Text
Me.InsCom.Parameters.Add("@password", SqlDbType.NVarChar, 50).Value = Me.txtPassword.Text
Me.InsCom.Parameters.Add(New SqlClient.SqlParameter("@userid", SqlDbType.NVarChar))
Me.InsCom.Parameters.Add(New SqlClient.SqlParameter("@password", SqlDbType.NVarChar))
Me.InsCom.Parameters("@userid").Value = Me.txtUsername.Text
Me.InsCom.Parameters("@password").Value = Me.txtPassword.Text
Me.DAUser.InsertCommand.Parameters.Item("@username").Value = Me.txtUsername.Text
Me.DAUser.InsertCommand.Parameters.Item("@password").Value = Me.txtPassword.Text
rows = Me.DAUser.InsertCommand.ExecuteNonQuery
Dim dr2 As DataRow = Me.QrsDataSet1.ViewAllUsers.NewRow
dr2.Item(0) = Me.txtUsername.Text
dr2.Item(1) = Me.txtPassword.Text
Me.QrsDataSet1.ViewAllUsers.Rows.Add(dr2)
MessageBox.Show(Me.QrsDataSet1.ViewAllUsers.Rows.Count)
rows = Me.DAUser.Update(Me.QrsDataSet1.ViewAllUsers)
Me.DAUser.Fill(Me.QrsDataSet1.ViewAllUsers)
Me.InsCom.Dispose()
Con.Close()
If rows = 1 Then
MessageBox.Show("Added")
Else
MessageBox.Show("Not Added 1")
End If