Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
To do this, save and close the project you were working on and create a new Windows Forms Application project. In this example, I’ve called it SimpleDataEntryForm. You will be using the Northwind database again, and this is just a simple form to navigate through Invoice and Invoice Details records. Since this is just an example, we are going to use the bare-minimum number of fields. So, create a text box, two DateTimePicker controls, and labels for each. These will be for Order ID, Order Date, and Ship Date. Then, add five more text boxes with labels. These will be for the Order Details fields for ID, Order ID, Quantity, Unit Price, and Discount. Then, add two more text boxes with a label in the middle that says “of.” Then add four buttons that say Next Parent, Next Child, Add New Order Detail, and Save Changes. How your form looks isn’t that important, but Figure 3-2 shows you what mine looks like.