1
I have a textbox with a text written a standard number and with the enabled property = false, that is a textbox with a number that cannot be changed.
But I created a button that leaves the enabled of the true textbox, and with that the number can be changed freely.
I would like that after typed a new number, the textbox gets back to enabled = false.
Could someone help me? Do you know if there is such a possibility?
I appreciate the help, but as I would apply this code in Visual Basic, I don’t think I understood very well
– Mateus Justino
It would not be good for you to do javascript, because in Vb the command will run on the server... but if you need I put Vb code too.
– Wellington Araujo
Actually it has to be in VB itself, but through this example in javascript I managed to find a way for what I want in Vb, would be using a checkbox with this code
If CheckBox1.Checked = True Then
 TextBox1.Enabled = True
 ElseIf CheckBox1.Checked = False Then
 TextBox1.Enabled = False
 End If
I appreciate the help!– Mateus Justino
That’s right boy.... You can vote as useful my comment too.
– Wellington Araujo