Focus API, DefaultButton, DefaultFocus, and SetFocusOnError

TextBox 1:
TextBox 2: <-- notice the cursor starts here
TextBox 3:



Show Panel