jjmendes Posted January 28, 2016 at 01:21 PM Report Share #592715 Posted January 28, 2016 at 01:21 PM Pessoal, Estou a fazer um procedimento, no evento "LostFocus", entretanto quero que o objeto não perca o foco em caso de erro. como posso fazer ? Tentei colocar na tratativa de erro o código: nomedoobjeto.SetFocus. Mas não tive sucesso. Link to comment Share on other sites More sharing options...
carlosAl Posted January 28, 2016 at 11:17 PM Report Share #592741 Posted January 28, 2016 at 11:17 PM entretanto quero que o objeto não perca o foco em caso de erro parece que esse evento se dá quando ja perdeu o foco, talvez possas tentar num evento anterior, por exemplo : no evento beforeUpdate(antes De Atualizar) do controlo em que queres que permaneça o foco, na condiçao do erro, colocas : Cancel = True Link to comment Share on other sites More sharing options...
jjmendes Posted January 29, 2016 at 01:57 AM Author Report Share #592743 Posted January 29, 2016 at 01:57 AM Obrigado guerreio. Matou ! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now