I have a text field that after the user enters a value and attempts to either tab off the field or click another field the entered value is validated. If the entered value does not pass validation then I would like to prevent the focus from changing and popup an error message stating that fact. I've put code into the text field listener's LoseFocus() to validate then on failure to set the focus back to the text field. This usually results in an endless loop of the "Invalid Value Dialog" poping up. I would think there's a really elegant and optimal way to do this. If anyone know's please let me know.