1
How do I validate the textbox to enable or disable a button? That’s the code I’ve made so far.
If IsNumeric(txtPedidoCotacao.text) Then
cmdMontaPedido.enabled = True
cmdCancelar.enabled = True
CmdAutorizacao.enabled = True
cmdConfiguraPaginas.enabled = True
cmdCotacoes.enabled = True
ElseIf KeyAscii = 8 Then
cmdMontaPedido.enabled = False
cmdCancelar.enabled = False
CmdAutorizacao.enabled = False
cmdConfiguraPaginas.enabled = False
cmdCotacoes.enabled = False
NOTE: The method is in Keypress ( txtPedidoCotacao_KeyPress ).