Duration: 19:57 min
Summary: In this video we continue the ‘Common Controls’ form. We add the Submit and Cancel buttons. We also support the tooltip, and the error provider. Then we switch to the code behind where we add a MessageBox that contains all the information the user has entered. The MessageBox shows up when the user clicks the submit button. We also implement the functionality that allows the user to select a picture using the open file dialog. In order to make the first name and last name as required fields, we added the validating event for each one of them. This event will trigger when the user tabs out of the textbox. If no data is entered, an error icon will show up to inform the user that the field is required. Finally, we added a FormClosing event that is triggered when the user is closing the form. A MessageBox will ask the user if he/she is sure about closing the form.