Hi Roel,
Roel De Nijs wrote:
Here is also another thread about this issue.
I checked that thread, thanks.
Roel De Nijs wrote:
I don't have a clue why you want to check with every keypress if it is a valid ip or host name
Why not execute your check when input field lost focus?
Maybe, I'm just overdoing it, but with keypressed I have my Connect or Start button enabled/disabled to the current value(s) (e.g. to the current ip address). If I use the lostFocus, the button enabling (or disabling) has to wait until the text field(s) looses focus.
I didn't check it, but when does the text field looses the focus; before or after the "disabled" connect button is clicked? I mean, the connect button will be only enabled, if the user clickes somewhere. Does he have to click twice? First to loose focus and to enable connect button, and second to click the now enabled connect button.
I hope this is not one of THOSE questions I shouldn't ask
cheers
Bob