Changed TabIndex property of controls so that the Close button gets focus instead of the textbox