Advanced Visual Basic 2010 Chapter 7 Programming Challenge 1 Adding New Payments
Create an application that lets the user add new payments to the Karate database. Use an Object data source, a LINQ query, and a BindingSource control. Do not use a MenuStrip control, but use a Save button to save the payments. Add a Show Payments button that displays the Payments table on a separate form in a DataGridView control. A sample main form is shown in Figure 7-17. Catch all exceptions and display a message box if an exception is thrown. Display a confirmation message when a row is added successfully. Hint: Be sure to initialize the BindingSource’s DataSource property with a LINQ Select query when the form is loaded.