sorry probably very simple
i think i am being a muppet at the moment.
i have a OKbtn that is designated as the accept button for the form. how can i stop the window from closing if the ok fails. for example on a login screen if the username or password is not correct i want the form to stay there
cheers