I have a dialog that has multiple edit boxes on it. This dialog opens when a button is pressed. These edit boxes are set up to show at different times on a tab control. The problem I am having is when I press enter on any of the edit boxes the dialog closes. How do I stop the dialog from closing or hook the enter key.