Jump to content
Sign in to follow this  
jcbiker

desbloquear uma caixa de texto

Recommended Posts

jcbiker

Tenho este código

Private Sub txtMarcaAl_DoubleClick(ByVal sender As Object, ByVal e As System.EventArgs) Handles txtMarcaAl.DoubleClick
        txtMarcaAl.Enabled = True
    End Sub

Quando corro o programa e clico duas vezes não desbloqueia. Porquê?? :nono:

Share this post


Link to post
Share on other sites
AMateus

Se um objecto está disabled obviamente que não responde a eventos, neste caso, o Double Click  ;)


R. Tape Loading Error

Share this post


Link to post
Share on other sites
jcbiker

Pois, mas eu no vb6 ao passar com o cursor por cima e cliar na caixa esta desbloquava.

🤔

Share this post


Link to post
Share on other sites
Weasel

Faz o seguinte, não a coloques como disabled, mete-a só como readonly=True, e aí sim metes o evento doubleclick para passar a readonly = False


Knowledge to the masses


Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.