Hitmanpt Posted June 13, 2012 at 08:48 PM Report Share #462566 Posted June 13, 2012 at 08:48 PM Boas pessoal tenho um problema... tenho uma form com um botão e quando clico nesse botão abre outra form por cima da localização desse botão e queria que quando o utilizador clica-se fora dessa form a form fecha-se já tentei o evento "LostFocus" mas nao faz nada... alguma ideia? Link to comment Share on other sites More sharing options...
mateusb Posted June 13, 2012 at 10:21 PM Report Share #462584 Posted June 13, 2012 at 10:21 PM Private Sub Form2_LostFocus(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.LostFocus Me.Hide() End Sub isso funcionou comigo... Link to comment Share on other sites More sharing options...
RGanhoto Posted June 14, 2012 at 01:28 PM Report Share #462764 Posted June 14, 2012 at 01:28 PM Boas. Podes usar o evento Deactivate. Isso não é muito certo mas creio que corra.. PS: acho que o deactivate só corre quando carregas fora da aplicação. Cumprimentos 🙂 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