How can I make a validation in the textbox to enable or disable a button? That's the code I've done 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 the KeyPress (txtPuedidoCotacao_KeyPress).